waitdetached

Waitdetached is used to prevent pop-up DOS windows when waiting for a program to complete. It's the same as the wait command, but the process created doesn't access the parent's console, inhibiting the distracting DOS window. Rundetached should not be used for running interactive programs. If this is done, the interactive program will not be able to show its user interface and may appear to be hung. This command is provided strictly for running programs that do not display a user interface.

Syntax

waitdetached <command line>

Example

waitdetached "scandskw.exe"
waitdetached wscript /e:vbs x.vbs arg1 arg2

This example shows how you might run a script, pass it some arguments and then wait for its completion before continuing the action script.

Notes

This command is Windows-only. It will cause an action script to terminate on a Unix agent.

On a Windows computer, this has the same effect as issuing a CreateProcess (CommandLine) statement from the Windows API, and then waiting for completion.

Version 5.1 and above -- Windows Only