Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Executing many .exe files simultanesouly with .bat script

Posted on 2006-11-07
4
Medium Priority
?
411 Views
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:

cls
@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 ****************************************
cls
exit

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?

Thanks!
0
Comment
Question by:coolgeek84
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
hclgroup earned 500 total points
ID: 17889875
Try using start keyword instead of call
0
 
LVL 1

Author Comment

by:coolgeek84
ID: 17890065
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?
0
 
LVL 4

Expert Comment

by:hclgroup
ID: 17890114
kill -f firefox.exe

kill.exe available in the resource kit.
0
 
LVL 1

Author Comment

by:coolgeek84
ID: 17890505
Thanks for the quick replies!

Regards,
coolgeek84
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Loops Section Overview

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question