March 29, 2006 06:29 PM

Start Programs Simultaneously From Batch Files

Rating: (0)
Windows IT Pro
InstantDoc ID #49441

In batch files, you can launch programs. For example, a batch file might need to launch Microsoft Paint, Calculator, and Notepad and thus contain the lines

mspaint
calc
notepad

However, these programs won't be run at the same time. Notepad will run only after you close Calculator—and Calculator will run only after you close Paint.

If you want the programs to be executed at the same time, you can use the Start command to run them. In this example, you'd include the lines

Start mspaint 
Start calc 
Start notepad

in the batch file.

Another way to launch programs simultaneously from batch files is to use the pipe (|) symbol. The pipe symbol is designed to transfer the output of one command to another command for use as input. However, when you use it in the line

mspaint | calc | notepad 

the result is the simultaneous execution of the three programs.

—Murat Yildirimoglu

Add a Comment

F* that, I'm going to buy Microsoft Bob.

Beetely6/1/2006 2:01:03 PM


thanks

Mustafa5/11/2006 5:09:54 AM


wellknown information

Andrei4/20/2006 11:18:36 PM


.

David4/19/2006 3:10:37 AM


You must log on before posting a comment.

Are you a new visitor? Register Here
GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS