Command Prompt for Windows




Command CAPTURE

Function:

Turn the capturing of input and output for console programs on or off. Also allows the No Capture list to be manipulated.

Syntax:

CAPTURE [ [/D] path]

or

CAPTURE [ON | OFF]
pathSpecifies the full path of the console program to include in the No Capture list. Programs included in this list will run in their own separate window.
ONCapture the input and output of console programs.
OFFDo not capture the input and output of console programs.
/DRemove the specified console program from the No Capture list.

Note:

The WinOne® Command Prompt uses Console Emulation or Anonymous Pipes to receive and send characters to and from a console program. This process is referred to as "capturing a programs input and output". Console programs are a sub-set of text mode type programs. Most standard DOS commands have been converted to console programs in Windows NT.

The No Capture list contains console programs that should not be run under capture. This includes console programs that do not use streamable input and output. The console programs contained in the No Capture list will be given their own window when executed from the command prompt.

When an attempt is made to capture the input and output of a console program that does not use streamable input and output then the program will be blocked until ^C is pressed to end the program. The program should then be added to the No Capture list, so that, the WinOne® Command Prompt will know NOT to capture the programs input or output next time it is run. There is no way of knowing in advance whether or not a program will perform correctly under capture, hence the need for a No Capture list. This list is similar in concept to PIF files.

All other types of text mode programs (other then console programs) will be run in their own window (eg. DOS programs) when run from the command prompt. There is no need to include these types of programs in the No Capture list.

When no parameters are specified for command CAPTURE then the current No Capture list is displayed.

Also see Program Run Options.

Also see Windows and Capturing Console I/O