Launching Multiple Programs From A Command Prompt Script

W

WorldNet User

I would like to launch multiple programs from a command prompt script (in
Windows XP Home Edition). For example, I have three instant messenger
programs and want to launch them all from a script called im.bat.

So I put the following three lines into IM.bat, but launching it this way,
the script will not execute the second line until the first program is
closed.

"C:\Program Files\AIM\aim.exe"
"C:\Program Files\Yahoo!\Messenger\YPager.exe"
"C:\Program Files\MSN Messenger\msnmsgr.exe"

I tried putting start at the beginning of each line, but with that variant,
none of the three programs executed.

What needs to be done to fix this script?
 
W

Wesley Vogel

I do not have any of these programs. It worked with three I do have.
Try this.............

start "" "C:\Program Files\AIM\aim.exe"
start "" "C:\Program Files\Yahoo!\Messenger\YPager.exe"
start "" "C:\Program Files\MSN Messenger\msnmsgr.exe"
 
W

WorldNet User

Yes, that worked. Thanks. The trick seemed to be to add the extra sets of
quotes "" before the quotes containing the actual executable name, and I am
curious to know why those extra ones make it work. When I did not have
those extra quotes, it did not work.
 
W

WorldNet User

Yes, the article in PC magazine directly addressed this issue. It turns out
that the first pair of quotes ( with nothing inside, in my case ) is
required as the first parameter, which can be used to specify the title for
the corresponding window, if you want a title.
 

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