troubleshooting Question

Batch File to wait & close running programs

Avatar of mte01
mte01Flag for Lebanon asked on
Microsoft Development
10 Comments1 Solution218 ViewsLast Modified:
Hey experts,

I have the following commands at the beginning of a batch file:

cd C:\Documents and Settings\Mohamad\My Documents\PTT Pro\ThinClientB\build\classes
start java PTT_ClientB.ClientBTester a101 a101
start java PTT_ClientB.ClientBTester a102 a102
start java PTT_ClientB.ClientBTester a103 a103
start java PTT_ClientB.ClientBTester a104 a104
start java PTT_ClientB.ClientBTester a105 a105

cd C:\Documents and Settings\Mohamad\My Documents\PTT Pro\ThinClientA\build\classes
start java PTT_ClientA.ClientATester a1 a1 03100101
start java PTT_ClientA.ClientATester a2 a2 03100102
start java PTT_ClientA.ClientATester a3 a3 03100103
start java PTT_ClientA.ClientATester a4 a4 03100104
start java PTT_ClientA.ClientATester a5 a5 03100105

After the following, I want to wait for a certain amount of time (let's say 20 seconds), and then I want to close the above running programs (if they are still running)...any help on that??
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros