Jump to content
Sign in to follow this  
Guest johnc123

Multiple Command Windows tracking

Recommended Posts

Guest johnc123

I have a need to launch multiple dos command windows simultaneously and want to hold my program up until those windows close out. All 12 of the windows are command files that I'll be passing through a %1 variable via DOS. Example test.cmd server1 test.cmd server2, etc.

Is there a way to track 12 different windows that is simple?

Share this post


Link to post
Share on other sites
Alterego

AutoItSetOption("WinTitleMatchMode")

While WinExists("cmd.exe") OR ProcessExists("cmd.exe")
         Sleep(250)
WEnd

Edited by Alterego

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×