rundetached

Rundetached modifies the run command by setting the DETACHED_PROCESS flag when calling CreateProcess() on Windows machines. By default, a created process inherits its parent's console. When detached, this behavior is inhibited. This gives the new process some more control over how it may interact with the user.

Among other things, this can be used to prevent pop-up DOS windows when you execute a program. It's the same as the run command, but the process created doesn't access the parent's console, which inhibits 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

rundetached <command line>

Examples

rundetached "{pathname of regapp "background_app.exe"}"
rundetached "c:\winnt\ftp.exe" ftp.filesite.net

These examples show how you might run a program and pass it some arguments. Quotes around the command line are recommended, and necessary if there are spaces in file names.

Notes

This command is Windows-only. It will cause an action script to terminate on a Unix agent. On a Windows computer, this command has the same effect as issuing a CreateProcess(CommandLine) statement from the Windows API. This is also the same as using CommandLine in the Windows RUN dialog. See the Windows documentation on CreateProcess() for a discussion of the method used to locate the executable from a CommandLine.

Version 5.1 and above -- Windows Only