home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / SWEEP.ZIP / SWEEP.DOC next >
Text File  |  1989-12-29  |  2KB  |  58 lines

  1.   SWEEP                        OS/2 & MS-DOS FAMILY MODE
  2.  
  3.   ______________________________________________________
  4.  
  5.   Purpose:  Causes a command to be successively executed
  6.             in every subdirectory on a hard disk.
  7.  
  8.   Format:   SWEEP Command [parameter(s)]
  9.  
  10.   Remarks:  SWEEP starts from the CURRENT DIRECTORY.  In
  11.             order to use SWEEP to extend the range of a
  12.             command to all the subdirectories on a disk,
  13.             use CD (if necessary) to make the root
  14.             directory your current directory.  From the
  15.             root directory, the command
  16.  
  17.                  SWEEP DIR
  18.  
  19.             will display the listings, by subdirectory,
  20.             of every non-hidden file on the disk.  To
  21.             erase all the .BAK files on a disk you need
  22.             only get into the root directory and issue
  23.             the command
  24.  
  25.                  SWEEP DEL *.BAK
  26.  
  27.             SWEEP itself will not accept parameters other
  28.             than its command.  Thus, if you are on drive
  29.             C: and wish a directory of all files on drive
  30.             D: to be sent to your printer, you must first
  31.             make drive D: the current drive before you
  32.             issue the command
  33.  
  34.                  SWEEP DIR > LPT1
  35.  
  36.             (In this case you must ensure that SWEEP.EXE
  37.             is in a directoy listed in your PATH statement.)
  38.  
  39.             SWEEP can execute .BAT file commands (and
  40.             even non-DOS commands, such as LOCATE.COM).
  41.             A useful file called CLEAN.BAT might consist
  42.             of the three lines
  43.  
  44.             DEL *.BAK
  45.             DEL *.TMP
  46.             DEL *.OBJ
  47.  
  48.             From the root directory, if you then enter
  49.  
  50.                  SWEEP CLEAN
  51.  
  52.             all .BAK, .TMP, and .OBJ files will be erased
  53.             from the disk.
  54.  
  55.             Notes:
  56.  
  57.             1. Requires OS/2 1.0 or later or, DOS 2.0 or later.
  58.