Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


April 2006

Start Programs Simultaneously From Batch Files

RSS
Subscribe to Windows IT Pro | See More Tips Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

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

End of Article



Reader Comments
.

office@hunterkane.com April 19, 2006 (Article Rating: )


wellknown information

rechka April 20, 2006 (Article Rating: )


thanks

tafawy May 11, 2006 (Article Rating: )


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

Anonymous Ass June 01, 2006 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...


Scripting Whitepapers From Development to Production: Streamlining SharePoint Deployment with DocAve Deployment Manager

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

7 Ways To Get More From Your SharePoint Deployment Now

Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related Scripting Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement