Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Executing many .exe files simultanesouly with .bat script

Posted on 2006-11-07
4
Medium Priority
?
410 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

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.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Introduction to Processes

670 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