in reply to Re^2: killing on win32
in thread killing on win32
When I want to kill processes manualy on w2003, I drop down to the command line and play with wmic process list (you could get started with wmic process list /?). At least one form of the output provides the ppid (parent process) as well as the real pid and the full command line. This makes me think you could walk up or down the tree of all pids and be pretty sure of identifying those that are yours and kill things from the bottom up.
I haven't used it, but Win32::Process::Info::WMI seems to have the ability to query wmi programmatically to get this information. If that works, then all you'd have to worry about is how patched the particular win32 you're dealing with is and whether it has an up-to-date WMI.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: killing on win32
by BrowserUk (Patriarch) on Sep 06, 2007 at 14:52 UTC | |
by goibhniu (Hermit) on Sep 06, 2007 at 15:02 UTC | |
by BrowserUk (Patriarch) on Sep 06, 2007 at 17:22 UTC | |
by goibhniu (Hermit) on Sep 06, 2007 at 18:48 UTC |