$cs.Sys_WaitForProcess
Syntax
$cs.Sys_WaitForProcess(string processname, int MaxWaitSec, int IntervalSec)
Â
Parameters
processname
Process name to wait for to finish
MaxWaitSec
Max seconds to wait
IntervalSec
Seconds to sleep before checking again
Â
Example
if ($cs.Sys_ExistProcess("setup.exe")){ $cs.Sys_WaitForProcess("setup.exe",60,1)}
returns nothing
Â