wait

The wait command behaves the same as the run command, except that it waits for the completion of the process or program before continuing.

Syntax

wait <command line>

Example

wait "scandskw.exe"

Runs the scandskw program and waits for the program to complete before continuing with the action script. The use of quotes is recommended practice, and necessary if there are spaces in the file name.

Note

On a Windows computer, this has the same effect as issuing a CreateProcess <command line> statement from the Windows API, and then waiting for completion.

Version 5.1 and above