Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
call multiple progs in a .bat file
Name: Tim Date: November 6, 2002 at 16:18:28 Pacific OS: Win2000 CPU/Ram: P4/512MB
Comment:
I have a program that will allow me to "tunnel" out to the Internet on specific ports thru a proxy server. So in order to send and receive e-mail, I need to call the tunnel program once for port 110 (POP3) and once for port 25 (SMTP). The tunnel program then has to remain running as long as I want to tunnel out.
I am trying to create a batch file that can call multiple instances of the program. However, all I've been able to get is the 1st instance to run. I'm assuming that since it never completes, my batch file doesn't process the subsequent calls.
Any ideas how to make a batch file call multiple programs that will all stay active?
Name: tech-fred Date: November 7, 2002 at 01:07:58 Pacific
Reply:
Generally In DOS one job at a time runs. You might try make a "mult-taking" program.
0
Response Number 2
Name: IVO Date: November 7, 2002 at 01:37:58 Pacific
Reply:
To run concurrent programs in real DOS you need to use TSR modules. If you want your program running in a DOS window under Windows 2000 you may use the Start command:
@Echo Off Start /Min program1 Start /Min program2 ...
The batch file will open programs in separate windows and run them as icons.
To see all the parameters of the Start command type Start /? at DOS Prompt.