Solved

Executing many .exe files simultanesouly with .bat script

Posted on 2006-11-07
4
405 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 125 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

932 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now