Jump to content
Compatible Support Forums
Sign in to follow this  
aze

batch file [executing EXEs]

Recommended Posts

Hi all!

i'm trying to make a .BAT file that works like that:

 

------------------

"c:\winnt\...\program1.exe"

"c:\winnt\...\program2.exe"

------------------

 

but when i run the bat file it doesn't run the program2.exe while program1.exe is running. I'd like it ran both program at the same time.

how to do that?

thanks a lot!

Share this post


Link to post
Quote:
Hi all!
i'm trying to make a .BAT file that works like that:

------------------
"c:\winnt\...\program1.exe"
"c:\winnt\...\program2.exe"
------------------

but when i run the bat file it doesn't run the program2.exe while program1.exe is running. I'd like it ran both program at the same time.
how to do that?
thanks a lot!


hmmm
that is an interesting question
i am not sure that you can do that
it is kind of the nature of a script
one thing completes and then next thing runs until it is done

you should try learning some visual basic
that would surely be able to do it

Share this post


Link to post

I know something about VB. But not enought to build a script.

If someone could send me a sample I would be grateful.

Share this post


Link to post

Do it this way:

 

start "c:\winnt\...\program1.exe"

start "c:\winnt\...\program2.exe"

Share this post


Link to post

Slightly different method is

 

start /w "c:\winnt\...\program1.exe"

start "c:\winnt\...\program2.exe"

 

This will make is wait after one program wait before another one.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×