Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

March 29, 2006 12:00 AM

Start Programs Simultaneously From Batch Files

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

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

Related Content:

ARTICLE TOOLS

Comments
  • Beetely
    6 years ago
    Jun 01, 2006

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

  • Mustafa
    6 years ago
    May 11, 2006

    thanks

  • Andrei
    6 years ago
    Apr 20, 2006

    wellknown information

  • David
    6 years ago
    Apr 19, 2006

    .

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.