[Toc][Index]

DETACH - Start a program in detached mode

 
 Purpose:    Start an OS/2 program in detached mode. 
             
 Format:     DETACH command 
             
             command :  The name of a command to execute, including an 
             optional drive and path specification. 
 
 See also:  START. 
 Usage 
 When you start a program with DETACH, that program cannot use the 
 keyboard, mouse, or video display.  It is "detached" from the normal 
 means of user input and output.  However, you can redirect the program's 
 standard I/O to other devices if necessary, using redirection symbols. 
 The command can be an internal command, external command, alias, or batch 
 file.  If it is not an external command, CMD.EXE will detach a copy of 
 itself to execute the command. 
 For example, the following command will detach a copy of CMD.EXE to run 
 the batch file XYZ.BTM : 

 
         [c:\] detach xyz.btm
 
 
 Once the program has started, CMD.EXE returns to the prompt immediately. 
  It does not wait for a detached program to finish. 
 There is no standard way to stop a detached program.  If the program does 
 not terminate on its own you must reboot the system or use an appropriate 
 task manager or external utility to stop it. 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs