home *** CD-ROM | disk | FTP | other *** search
- -------------------- REDIRECTION - A Special DOS Feature --------------------
-
- REDIRECTION allows a program to direct its output to a target other than the
- display screen or to receive its input from a source other than the keyboard.
-
- FORMAT: <[d:][path]filename[.ext] for input from a file
-
- >[d:][path]filename[.ext] for output to a file
-
- >PRN for output to a printer
-
- >>[d:][path]filename[.ext] for appended output to a file
-
- REMARKS:
-
- If a program obtaining its input from a file via redirection ("<") tries to
- read data after end-of-file, DOS will be unable to supply the data and
- processing will stop. In this event, use Control-Break to return to DOS.
-
- Redirection will not work if the program involved in redirection does not use
- DOS function calls to perform standard input and output.
-
- EXAMPLES:
-
- Redirect the output of the DIR command to the printer:
-
- DIR > PRN
-
-
- Sort a directory display and write it to the file DIRFILE:
-
- DIR | SORT > DIRFILE
-
-
- Append the output of the TREE command to the file TREEHIST:
-
- TREE >> TREEHIST