Starting A Nodejs Http-server Using A Bat File When The Directory Name Contains A Space
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
Solution 1:
It turns out removing the %~dp0
and just having http-server
and nothing else in the batch file makes it work!
It then serves up whatever is in the current directory as shown:
Post a Comment for "Starting A Nodejs Http-server Using A Bat File When The Directory Name Contains A Space"