Simple batch file fails

M

marlboro.blend

I have a batch file that should open four programs for me. Problem is
after starting the 1st program it stops. If I close the 1st program
the 2nd one will then start and so on. I need to have all programs
start one after the other. Inserting start at the beginning of each
line changes nothing. OS is XP pro. Any help gratefully recieved.

"C:\Program Files\Microsoft Office\OFFICE11\outlook.exe"
"C:\Program Files\Internet Explorer\iexplore.exe"
"http://www.srhdev.co.uk/dynamicstreams/mediaplayer.asp?station=forthone&playertype=wm"
"C:\Program Files\Look@LAN\LookAtLan.exe"
"C:\Program Files\Messenger\msmsgs.exe"
exit
 
A

Ayush

Replied to [[email protected]]s message :
I have a batch file that should open four programs for me. Problem is
after starting the 1st program it stops. If I close the 1st program
the 2nd one will then start and so on. I need to have all programs
start one after the other. Inserting start at the beginning of each
line changes nothing. OS is XP pro. Any help gratefully recieved.

"C:\Program Files\Microsoft Office\OFFICE11\outlook.exe"
"C:\Program Files\Internet Explorer\iexplore.exe"
"http://www.srhdev.co.uk/dynamicstreams/mediaplayer.asp?station=forthone&playertype=wm"
"C:\Program Files\Look@LAN\LookAtLan.exe"
"C:\Program Files\Messenger\msmsgs.exe"
exit

Use :
start /d "Directory Path" Filename.exe

e.g. :
start /d "C:\Program Files\Microsoft Office\OFFICE11\" outlook.exe


OR

start "" "Path"

e.g. :
start "" "C:\Program Files\Microsoft Office\OFFICE11\outlook.exe"
 
D

dguenthners

This is normal, expected behavior.
Insert the string 'start' in front of each command on the batch file.

Example test.bat
start calc
start mspaint


Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top