Compatible Support Forums: batch file [executing EXEs]

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

batch file [executing EXEs]

#1 User is offline   aze 

  • newbie
  • Group: Members
  • Posts: 26
  • Joined: 02-July 02

Posted 01 October 2002 - 02:11 AM

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!
0

#2 User is offline   Four and Twenty 

  • Pooh-Bah
  • Group: Members
  • Posts: 1623
  • Joined: 25-March 00

Posted 01 October 2002 - 04:58 AM

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
0

#3 User is offline   aze 

  • newbie
  • Group: Members
  • Posts: 26
  • Joined: 02-July 02

Posted 01 October 2002 - 11:16 AM

I know something about VB. But not enought to build a script.
If someone could send me a sample I would be grateful.
0

#4 User is offline   Davros 

  • enthusiast
  • Group: Members
  • Posts: 347
  • Joined: 21-March 02

Posted 01 October 2002 - 03:24 PM

Do it this way:

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

#5 User is offline   aze 

  • newbie
  • Group: Members
  • Posts: 26
  • Joined: 02-July 02

Posted 01 October 2002 - 03:39 PM

thanks a lot Davros! that works! smile
0

#6 User is offline   Four and Twenty 

  • Pooh-Bah
  • Group: Members
  • Posts: 1623
  • Joined: 25-March 00

Posted 01 October 2002 - 03:46 PM

Quote:
Do it this way:

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


cool
ya learn something new everyday
0

#7 User is offline   Igor 

  • enthusiast
  • Group: Members
  • Posts: 382
  • Joined: 24-July 99

Posted 02 October 2002 - 02:29 AM

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users