Introduction
Entering Commands
Help!
File Names
Directories
Commands A-C
Commands D-F
Commands G-L
Commands M-Z
Wildcards
Command Line Buffer
Redirecting
Piping
More Keys
Tips, Tricks & Hints
Closing
Legal Notices

Redirecting

OUTPUT

Redirecting output is were you take a DOS command and direct its message, output, to another device or file.

The redirection symbol for output is the greater than sign ( > ).

SYNTAX - COMMAND > TARGET
EXAMPLE:
FASTHELP > LPT1 - Prints fasthelp to your printer if its on LPT1.

STANDARD TARGET DEVICES:
CON - Screen display, default.
PRN - Default printer.
LPT1 - Parallel printer port number one.
LPT2 - Parallel printer port number two.
COM1 - Communications port number one.
COM2 - Communications port number two.
COM3 - Communications port number three.
COM4 - Communications port number four
AUX - Auxiliary output device.
NUL - Null device (suppresses output from the command)

You can also redirect output to a file. If the file doesn't exist it will be created. If it does exist it will be over written. If you want to add the output to an existing file double the redirection symbol ( >> ).

EXAMPLES:
FASTHELP > HELP.ME - Creates or replaces the help.me file.
FASTHELP >> HELP.ME - Adds to the end of the file help.me if it is their.

INPUT

Redirecting input is were you send DOS commands from a file, COM1 - COM4 or AUX.

To redirect input use the less-than sign ( < ).

SYNTAX - COMMAND < INPUT
EXAMPLE:
MORE < BIGFILE.TXT - Pauses the file output one screen full at a time
if the file is too big for one screen.