up vote 2 down vote favorite
share [g+] share [fb]

If I create a batch file (batch.bat) and typed this in:

"C:\Program Files\WinRAR\WinRAR.exe"
"C:\Windows\System32\notepad.exe"

The applications in question would run in order, first WinRAR would load and once closed, Notepad would load next in order.

Q: How do I syntax the batch file to run all application at the same time, I want both WinRAR and Notepad to open at the same time.

link|improve this question
feedback

2 Answers

up vote 9 down vote accepted

Use start instead:

start "" "command here"

Edit: Do not miss the first pair of empty quotes, this is the title of the process/window.

start <title> <command> <parameters>

See start /? for further details.

link|improve this answer
1  
Thanks dude.... – ToastMan Feb 2 '10 at 20:03
4  
To be a pedantic snerk, I have to point out that this wont work in DOS :-) It will work in cmd.exe, though. – SuperMagic Feb 2 '10 at 20:17
1  
Of course. DOS doesn't even have multitasking. – grawity Feb 2 '10 at 20:28
feedback

create shortcuts to the exectutables and copy them into a folder (i chose Z:\Temp), then use this:

"z:\temp\NOTEPAD.EXE.lnk"
"z:\temp\WinRAR.exe.lnk"

Or use Batch Runner, a simple program that enables you to run lots of other programs, in one big batch.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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