Jump to content

Recommended Posts

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
  • Moderators
Posted

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!

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

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
×
×
  • Create New...