2008-07-18, 02:22
In order to run multiple programs at once from a batch file you need to start them using the start command ... quite simple once you know it ... so for example if I typed this:
notepad.exe
notepad.exe
in a batch file, it would run the first notepad and only run the second notepad once the first was closed. But if I typed this:
start notepad.exe
start notepad.exe
it will run both of them right away.
Quick side note ... if you are providing the full path in your start command you have to put it in quotes if it has spaces ... also you need to provide a dummy quote section too ... so you'd have to do this:
start "" "C:\Windows\Notepad.exe"
cause
start "C:\Windows\Notepad.exe" won't work.
Hope that helps.
Harry
notepad.exe
notepad.exe
in a batch file, it would run the first notepad and only run the second notepad once the first was closed. But if I typed this:
start notepad.exe
start notepad.exe
it will run both of them right away.
Quick side note ... if you are providing the full path in your start command you have to put it in quotes if it has spaces ... also you need to provide a dummy quote section too ... so you'd have to do this:
start "" "C:\Windows\Notepad.exe"
cause
start "C:\Windows\Notepad.exe" won't work.
Hope that helps.
Harry