Miscellaneous

Batch Files – Launching Multiple Processes

October 6, 2012

A while back I needed to launch multiple applications from one batch file but found that it would runt he first one and wait for the process to end before starting the next. This was not at all what I wanted, as I needed several processes all to launch.

After a bit of research, I descovered that the command I needed was start. It took two parameters, the first being the name you wanted to give the window (shown in the title bar), and the second being the path to the file you wanted to launch.

Here is an example batch file that will launch two python scripts in separate windows:

@echo off
echo Launching Applications
start "Window #1 Title" "C:\Documents and Settings\Administrator\Desktop\Scripts Active\pyscript-2011.py"
start "Window #2 Title" "C:\Documents and Settings\Administrator\Desktop\Scripts Active\pyscript-2012.py"

Save that to a .bat file in Notepad and you will have a quick launch script that can be dropped into your quicklaunch menu or assigned to a hotkey.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.