0

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?

LotPings
  • 7,231

1 Answers1

0

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.