Computing.Net > Forums > Disk Operating System > call multiple progs in a .bat file

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

Reply to Message Icon

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?

Thanks.

Tim



Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Windows ate my dos! Edit Shortcut's Target vi...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: call multiple progs in a .bat file

HELP Renaming files with a .bat file www.computing.net/answers/dos/help-renaming-files-with-a-bat-file-/3679.html

Sleep or pause in a Bat file www.computing.net/answers/dos/sleep-or-pause-in-a-bat-file/3137.html

Retrieving the System Date in a bat www.computing.net/answers/dos/retrieving-the-system-date-in-a-bat/13239.html