home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / TOOLS / XDEL105 / xdel.txt < prev   
Text File  |  1997-08-17  |  7KB  |  174 lines

  1.  
  2.         XDEL - an enhanced DEL command for OS/2 
  3.  
  4.             Copyright (c) 1995, 1996, 1997 Klaus Joosz
  5.               All rights reserved.
  6.  
  7.     This program is free software. It is distributed in the hope that it 
  8.     will be useful, but WITHOUT ANY WARRANTY.
  9.  
  10. -------------------------------------------------------------------------------
  11.  
  12. XDEL is an extension of the OS/2 DEL command. It will delete the specified 
  13. file(s) in a directory and all subdirectories contained within. This includes
  14. system, hidden and read only files. Files can be selected by timestamp, size
  15. or may contain a specified string. Extended attributes of files can be deleted
  16. without deleting the files themselves.
  17.  
  18. This is the XDEL options screen:
  19.  
  20. Usage: XDEL [DRIVE:]PATH [/OPTION] [/OPTION] ...
  21.        XDEL [DRIVE:][PATH]FILENAME [/OPTION] [/OPTION] ...
  22. FILENAME may contain wildcard characters such as '*' and '?'. Options are:
  23.   /A:SEARCHSTRING
  24.       Delete files containing the specified string (search is case sensitive)
  25.   /B:[OPERATOR]FILESIZE
  26.       Delete files whose size (in byte) is less than, less equal, greater than,
  27.       greater equal, equal or not equal to the specified size.
  28.       If OPERATOR is omitted, less than is assumed.
  29.   /D  Delete empty subdirectories
  30.   /EA[:EXTENDED ATTRIBUTE]
  31.       Delete the extended attribute specified after the colon but do not delete
  32.       the file itself. If EXTENDED ATTRIBUTE is omitted all EAs of a file are
  33.       deleted.
  34.   /F  Deleted files cannot be recovered using the UNDELETE command
  35.   /I  Ignore settings in environment variable XDEL-DEFAULT-OPTIONS
  36.   /L  Do not list deleted files
  37.   /N  Start deletion without warning
  38.   /O  Overwrite files before deletion
  39.   /P  Pause on each file
  40.   /Q  Pause on each directory
  41.   /R  Delete READ ONLY files
  42.   /S  Delete matching files in subdirectories
  43.   /T:[OPERATOR]YEAR[-MONTH[-DAY[-HOURS[-MINUTES]]]]
  44.       Delete files with last write access less than, less equal, greater than,
  45.       greater equal, equal or not equal to the specified date and time.
  46.       If OPERATOR is omitted, less than is assumed. Format of date and time is
  47.       yyyy-mm-dd-hh-mm.
  48.   /X  Do not delete files in READ ONLY directories
  49.   /Y  Deletion of empty subdirectories will also affect READ ONLY directories
  50.   /?  Display this help message
  51.  
  52. OPERATORs are:
  53.   LT  Less Than
  54.   LE  Less Equal
  55.   GT  Greater Than
  56.   GE  Greater Equal
  57.   EQ  EQual
  58.   NE  Not Equal
  59.  
  60. The above options can be set by environment variable for permanent use:
  61.   SET XDEL-DEFAULT-OPTIONS=[/OPTION] [/OPTION] ...
  62. Options set by environment variable need not to be specified in the command
  63. line.
  64.  
  65.  
  66.  
  67. Installation
  68.  
  69. Copy XDEL.EXE to a directory referenced by the PATH environment variable.
  70.  
  71.  
  72. XDEL was developed using emx-gcc 0.9c. The executable in this package
  73. was created by the OS/2 Linker LINK386. It is a stand alone version, emx.dll
  74. is not needed.
  75.  
  76. Please report bugs to klaus.joosz@usa.net.
  77.  
  78.  
  79.  
  80. History
  81. -------
  82.  
  83. Version 1.03
  84.   
  85.   Fixed a bug with Novell NetWare 3.12: while scanning for subdirectories, 
  86.   normal files were found also. 
  87.  
  88.   Directories with the HIDDEN attribute are now found.
  89.  
  90.   Empty subdirectories with the READ ONLY attribute set will only be removed 
  91.   when the /Y option is used. 
  92.   It seems that OS/2 does not care about the READ ONLY attribute on local 
  93.   drives, so whether or not this attribute is set an empty subdirectory can 
  94.   be deleted with the RD command. On Novell network drives the READ ONLY 
  95.   attribute is supported.
  96.   Directory attributes can be displayed and removed with the ATTRIB command.
  97.   For I haven't found a command line tool to set directory attributes I wrote 
  98.   one of my own. The tool is called ATTRDIR.EXE and should be included in this 
  99.   package.
  100.  
  101.  
  102. Version 1.04
  103.  
  104.   Added switch /X to prevent files in READ ONLY directories from being deleted.
  105.  
  106.   Fixed a bug parsing the [DRIVE:][PATH]FILENAME expression in the command 
  107.   line.
  108.  
  109.   Added switch /T to exclude files with last write access newer than a certain
  110.   point of time from deletion. The last write access can be displayed by the
  111.   DIR command.
  112.  
  113.  
  114. Version 1.05
  115.  
  116.   Overwriting files now is significantly faster.
  117.  
  118.   Added new command line syntax: XDEL [DRIVE:]PATH [/OPTION] [/OPTION] ...
  119.   Now you can specify the name of a directory to delete all files in that
  120.   directory. Instead of
  121.     XDEL \TMP\*
  122.   you can type
  123.     XDEL \TMP
  124.   The empty subdirectory is not deleted automatically. To delete it add the /D
  125.   switch.
  126.  
  127.   Extended switch /T. Now you can delete files with a timestamp less than,
  128.   less equal, greater than, greater equal, equal or not equal a certain date
  129.   and time. To do so use the operators LT, LE, GT, GE, EQ and NE as mentioned
  130.   in the usage section of this file.
  131.   You can also combine two /T switches like that:
  132.     XDEL *.BAK /T:GE1997-05-01 /T:LE1997-05-31
  133.   This example shows how to delete all BAK files in the current directory
  134.   with last write access in May 1997.
  135.   If no operator is specified along with the /T switch LT is assumed.
  136.  
  137.   Added switch /B to select files by size. The size must be specified in
  138.   byte. This switch supports the operators LT, LE, GT, GE, EQ and NE.
  139.   Two /B switches can be combined like that:
  140.     XDEL *.BAK /B:GE1000 /B:LT10000
  141.   In this example all BAK files in the current directory with size from 1000
  142.   to 9999 byte are deleted.
  143.   If no operator is specified along with the /B switch LT is assumed.
  144.  
  145.   Added switch /A to delete files containing a certain string. If two or 
  146.   more /A switches are given only files containing all specified strings are
  147.   deleted.
  148.   String search is case sensitive.
  149.   If the string contains blank characters use double quotes like that:
  150.     XDEL *.BAK /A:"This string contains blank characters"
  151.   You can specify up to 16 /A switches in the command line.
  152.  
  153.   Added switch /EA to delete extended attributes of files.
  154.   For example you can delete the .LONGNAME and the .VERSION attributes of all
  155.   BAK files by typing
  156.     XDEL *.BAK /EA:.LONGNAME /EA:.VERSION
  157.   Delete all extended attributes of all BAK files by typing
  158.     XDEL *.BAK /EA
  159.   If the /EA switch is given only extended attributes of files are deleted
  160.   not the files themselves. To delete extended attributes of read only
  161.   files add the /R switch to the command line. Extended attributes of 
  162.   directories are not deleted.
  163.   You can specify up to 16 /EA: switches in the command line.
  164.  
  165.   Pressing any key during execution of XDEL brings up the dialog
  166.   "Terminate XDEL ([Y]es [N]o) [A]bort)". When overwriting large files
  167.   or searching for text in large files the dialog might not appear
  168.   immediately after the key stroke.
  169.  
  170.  
  171.  
  172.                             Klaus Joosz
  173.                                                     August 17, 1997
  174.