home *** CD-ROM | disk | FTP | other *** search
- ------------------------ PIPING ("|") - A DOS Feature ------------------------
-
- PIPING allows programs to be chained together with automatic redirection of the
- screen output of one program as the keyboard input to another program.
-
- FORMAT: |
-
- REMARKS:
-
- The bar |, which activates piping, is placed between commands. DOS uses
- special temporary files of the name %PIPEx.$$$ to pass screen output to the
- chained program.
-
- EXAMPLES:
-
- Display sorted information for the current directory on the default drive. The
- screen output of the DIR command is passed as keyboard input to the SORT
- command:
-
- DIR | SORT or DIR|SORT (spaces around | are optional)
-
-
- Display the file MYFILE and pause when the screen is full. MYFILE is in the
- current directory on the default drive:
-
- TYPE MYFILE | MORE
-
-
- Display the directory information for files in the current directory of the
- default drive that have the string "FY85" in the filename or filename extension.
- Sort the display by filename/extension and present it one full screen at a time:
-
- DIR | FIND "FY85" | SORT | MORE