evgeny9 Posted June 15, 2012 Share Posted June 15, 2012 (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 June 15, 2012 by evgeny9 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 15, 2012 Moderators Share Posted June 15, 2012 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. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
evgeny9 Posted June 18, 2012 Author Share Posted June 18, 2012 (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 June 18, 2012 by evgeny9 Link to comment Share on other sites More sharing options...
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