Sign in to follow this  
Followers 0
evgeny9

Kill the process if it's not the child of another one

3 posts in this topic

#1 ·  Posted (edited)

I'm testing an application, launching it from my script (so that the application process becomes the child of my script process). Sometimes, the launched application can download an update from the internet, after which it updates and restarts, but of course this time not under my script but on its own. I should detect such situations, kill the separate app process, and restart it under my script again. In help I couldn't find a Process* function dealing with process parents/children. How can I do it?

Thank you in advance.

Edited by evgeny9

Share this post


Link to post
Share on other sites



Hi, evgeny9, welcome to the forum. was suggested recently to resolve a problem similar to the one you're having; in the discussion, UEZ uses the WinAPI UDF to track child processes. You may find it helpful.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

JLogan3o13, thank you very much for your answer! I couldn't use "_WinAPI_EnumChildProcess" sub on the page you pointed out, but it lead me to which describes "_ProcessGetParent" - a sub that worked really good for me. Edited by evgeny9

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