So I have this batch file

START "%userprofile%\Desktop\Rebuild\JayBotWatcher.exe"
CALL "%userprofile%\Desktop\Rebuild\InventoryExporter.exe" "%userprofile%\Desktop\Rebuild\JayBot.exe"

The second line works fine, but the first fails for some reason and doesn't launch the .exe.

If I remove the quotes it works fine on PCs with no spaces in their username, but spaces in the username kill it on other pcs.

What am I missing?


To avoid path problems with the START commandline I always use the /D parameter. Like this:

START /D "%userprofile%\Desktop\Rebuild" JayBotWatcher.exe

This way should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.