Wait.Process
Top  Previous  Next


Waits for a remote process to finish

Category
General

Script section
All

Requirements
·Remote admin service  

Wait.Process MachineName, ImageName, Predelay, Timeout

MachineName
Name of machine that process runs on  

ImageName
Name of process executable  

Predelay

Seconds - time to wait before checking the process the first time  

Timeout
Seconds - how long to wait before giving up  

Example
Wait.Process \\EDU16, rdisk.exe, 5, 120

SetupBatcher will wait 5 seconds, then check if "rdisk.exe" is running. If it is, SetupBatcher will continue waiting for maximum 120 seconds. The batch job will stop with an error if the process isn't done before the time-out.