in reply to Re^2: break thread with system(...) call
in thread break thread with system(...) call
maybe there is a way to follow the process tree or kill cmd.exe in such a way that all children will be also killed?
Yes. Use Win32::CreateProcess and the include CREATE_NEW_PROCESS_GROUP. Use it to start cmd.exe and then supply your complex command line.
When you kill cmd.exe, any child processes it has created will be killed also.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: break thread with system(...) call
by BrowserUk (Patriarch) on Jul 17, 2008 at 13:12 UTC |