Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

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.

share|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

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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