We help IT Professionals succeed at work.

Executing many .exe files simultanesouly with .bat script

coolgeek84 asked
Medium Priority
Last Modified: 2010-05-18
Hi all,

I am trying to write a script which will run a bunch of programs and then exit.
I have currently written this:

@echo off
echo ****************************************
echo *******Opening Web Applications*********
echo ****************************************
call C:\Progra~1\MySQL\MySQLT~1.0\MySQLAdministrator.exe
call C:\Progra~1\MySQL\MySQLT~1.0\MySQLQueryBrowser.exe
call C:\Progra~1\Macromedia\DREAMW~1\Dreamweaver.exe
call C:\Progra~1\MOZILL~1\firefox.exe
echo ****************************************
echo ***************All Done!****************
echo ****************************************

Its not working in the way I require it too. It strats off the first program then the control is no longer with cmd.exe!
How do I get it back to cmd.exe automatically so it cant continue with opening the rest?
Right now I have to close the first program then the script runs the third and so on..
Rest assured, the path names and file names are totally correct. No error there.

And one more thing. How can I kill all these same apps without getting any prompts? What is the command for that?

Watch Question

Try using start keyword instead of call

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


Yep.. start worked!
Is it possible to skip the initial screens for sql administrator, query browser? All I need to do is click "OK" for both of them..
I can search for this probably in their documentation itself.. Also will check how to open to a particular page in mozilla..

How abt the second part? How to close apps? Is that possible?

kill -f firefox.exe

kill.exe available in the resource kit.


Thanks for the quick replies!

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.