WaitProcessExists


 

WaitProcessExists>processname

 

Waits for the specified process name to exist.

 

The system variable WFP_TIMEOUT can be used to set the number of seconds after which this command should timeout.  If set to zero (the default) the timeout will not occur and the command will continue indefinitely.  If WFP_TIMEOUT is used, WFP_RESULT will indicate whether or not the command ended successfully.  If it timed out WFP_RESULT will be set to FALSE.  If the process it was waiting for came into existance within the timeout setting, the WFP_RESULT value will be set to TRUE.

 

See also: ProcessExists, WaitProcessTerminated

Abbreviation: WPE

 

Example

 

WaitProcessExists>notepad.exe

MessageModal>Notepad now exists