Sign in to follow this  
Followers 0
joekey

Process active(working) or not?

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Zohar

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  
Followers 0