home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / ibm1 / pcwiz01.arj / DIR.INS < prev    next >
Text File  |  1991-09-25  |  3KB  |  76 lines

  1. DIR      Used to determine the location of files on the
  2.          disk and to view the directory structure. Also
  3.          provides info on file sizes and dates.
  4.  
  5. Format:  DIR [D:Path][FileSpec] [/P] [/W]
  6.  
  7.    /P    PAUSES at the end of each screen of directory
  8.          listings instead of normal scrolling.
  9.  
  10.    /W    displays directory listing in a WIDE format
  11.          (Five column display without the size, date,
  12.          and time information.)
  13.  
  14. Example:                  DIR
  15.  
  16.    Displays listings of subdirectories and ALL files
  17.    contained in the CURRENT directory in a one column
  18.    format showing filename.ext, size, date and time.
  19.  
  20.  
  21. Example:               DIR *.BAT
  22.  
  23.    Lists ONLY those files in the CURRENT directory that
  24.    have an extension of .BAT in a one column, scrolling
  25.    display format.
  26.  
  27. Example:            DIR \123\*.WK1 /P
  28.  
  29.    Lists ONLY those files in the \123 directory that
  30.    have an extension of .WK1 in a one column format and
  31.    PAUSES at the end of each screen.
  32.  
  33. Example:            DIR \123\*.WK1 /P/W
  34.  
  35.    Same as above, except display is in the five column
  36.    format which omits size, date and time. (Useful for
  37.    viewing directories that contain a large number of
  38.    files.)
  39.  
  40. Example:                 DIR A:
  41.  
  42.    Lists ALL files contained on the diskette residing
  43.    on drive A in the one column, scrolling format.
  44.  
  45. Example:         C:\> DIR D:\WP\DATA\*.TXT
  46.  
  47.    Lists ONLY those files in the \WP\DATA subdirectory
  48.    on drive D: that have an extension of *.TXT in the
  49.    one column, scrolling format. (Note: Command was
  50.    issued while in the ROOT directory of drive C.)
  51.  
  52. Example:       DIR \WP\DATA\*.TXT|SORT >LPT1
  53.  
  54.    Causes a listing of ALL *.TXT files contained on
  55.    the \WP\DATA subdirectory on the CURRENT drive to
  56.    be REDIRECTED to your LPT1 printer, instead of
  57.    being displayed on the monitor screen. With the
  58.    addition of the SORT filter command, this listing
  59.    will also be printed in alphabeltical order.
  60.  
  61. Example:   DIR \WP\DATA\*.TXT|SORT >WPTEXT.BAK
  62.  
  63.    Same as above, except the directory listing is
  64.    placed in a file named WPTEXT.BAK on the CURRENT
  65.    directory. This file can then either be printed
  66.    using the COPY or PRINT commands or displayed on
  67.    the screen using the TYPE command.
  68.  
  69.  
  70. [*]   The DIR command will display listings of ANY
  71.   drive and subdirectory, regardless of your current
  72.   location on the drive, provided you indicate the
  73.   desired [D:][Path] parameters in your command.
  74.  
  75. [*]   Do NOT use SORT with the /P and /W switches.
  76.