Let\'s say I have these commands:
Prog1.exe D:\\SomeDir\\Prog2.exe Prog3.exe
Now, say for the second line, I would like the working directo
What worked for me is adding a /d:
/d
cd /d C:\nginx ECHO Stopping nginx... start nginx -s quit
(When I didn't have the /d, it didn't work.)
https://stackoverflow.com/a/18310141/470749 tries to explain it.