I have a .bat file on windows, which i want to be able to copy to any new folder and doubleclick to start a http server. It only contains one line which is:
http-server %~dp0
The %~dp0
picks up the full path to whatever directory the .bat file is currently in. Credit to this answer for that.
It works well when none of the folders in the file path contain a space.
How can i modify the batch file to account for situations where some directories in the path contain a space in the name?
cheers
PS: Im new to this :)