But I have to specify in the beginning only when to suspend and resume the exe.
No you don't.
Script A uses Win32::Process::CreateProcess() to start perl.exe running script B. It gets a process handle back from that call.
Script B is running asynchronously from Script A. And Script A can call $hproc->Suspend() and $hproc->Resume() whenever it chooses to.
In reply to Re^3: Pause and Resume Exe
by BrowserUk
in thread Pause and Resume Exe
by gautamparimoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |