Trying to write a very simple batch file...

K

Kross

Which would launch three different applications and then
close. One of these applications is MSN Instant
Messenger, which will start with a simple "START MSNMSGR"
command. The other two, though -- C:\Program Files\Yahoo!
\Messenger\YPager.exe (Yahoo! Instant Messenger) and AOL
Instant Messenger (whose path I'm too lazy to trace at
the moment) -- aren't working. I'm using a "WIN" command
and then the path/filename. The first one works, but the
batch window sticks around until after the first one is
Exited; then it launches the second one. How do I make
them launch simultaneously? I'm getting seriously
frustrated here.

-Kross
 
T

Torgeir Bakken (MVP)

Kross said:
Which would launch three different applications and then
close. One of these applications is MSN Instant
Messenger, which will start with a simple "START MSNMSGR"
command. The other two, though -- C:\Program Files\Yahoo!
\Messenger\YPager.exe (Yahoo! Instant Messenger) and AOL
Instant Messenger (whose path I'm too lazy to trace at
the moment) -- aren't working. I'm using a "WIN" command
and then the path/filename. The first one works, but the
batch window sticks around until after the first one is
Exited; then it launches the second one. How do I make
them launch simultaneously? I'm getting seriously
frustrated here.

Hi

Try this:

start MSNMSGR
start "C:\Program Files\Yahoo!\Messenger\YPager.exe"
start "some path to AOL IM"
exit
 
L

Les Herrman

Which would launch three different applications and then
close. One of these applications is MSN Instant
Messenger, which will start with a simple "START MSNMSGR"
command. The other two, though -- C:\Program Files\Yahoo!
\Messenger\YPager.exe (Yahoo! Instant Messenger) and AOL
Instant Messenger (whose path I'm too lazy to trace at
the moment) -- aren't working. I'm using a "WIN" command
and then the path/filename. The first one works, but the
batch window sticks around until after the first one is
Exited; then it launches the second one. How do I make
them launch simultaneously? I'm getting seriously
frustrated here.

-Kross


try using a VB Script file to do it.

set launch = createobject("wscript.shell")
launch.run ""
launch.run ""
launch.run ""


Insert the paths to the files in the ""

Save the file with a .vbs extension.
 

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