joekey Posted March 8, 2009 Posted March 8, 2009 Hallo, could somebody help me with (I think) simple problem. I start an exe file, the script should wait until it is done. The problem is that exe will not close after it is done, so the process is still active. How could I test if the exe still works or if it is already done, and I can proceed with script? I tried to controll if there are actions behind the process, using : $IO1 = ProcessGetStats("myProgramm.exe", 1) but it doesn't really worked. Thanks a lot Joe
Zohar Posted March 8, 2009 Posted March 8, 2009 (edited) One option as you said, is to use some function that gets the CPU Usage of a Process, and wait till it rops to 0 and stays there for several seconds. Another option, is if this EXE has a GUI, is to Check the State of the GUI, and according to it to conclude when it's done. Edited March 8, 2009 by Zohar
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now