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.
In reply to Re^3: break thread with system(...) call
by BrowserUk
in thread break thread with system(...) call
by aaaone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |