Start Programs Simultaneously From Batch Files
If you want your batch file to launch several programs at the same time, you can use the Start command or the pipe symbol.
March 28, 2006
In batch files, you can launch programs. For example, a batch file might needto launch Microsoft Paint, Calculator, and Notepad and thus contain the lines
mspaintcalc 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 thepipe (|) symbol. The pipe symbol is designed to transfer the output of one commandto 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.
Learn more from "Using URLs in Batch Files" and "How to launch a program before the shell (Explorer) starts."
—Murat Yildirimoglu
About the Author
You May Also Like