home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / TOOLS / XDEL106 / XDEL.TXT < prev   
Text File  |  1997-10-03  |  9KB  |  224 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]FILENAME [/OPTION] [/OPTION] ...
  21.        XDEL [DRIVE:]PATH [/OPTION] [/OPTION] ...
  22. FILENAME may contain wildcard characters such as '*' and '?'.
  23. Options are:
  24.   /A:SEARCHSTRING
  25.       Delete files containing the specified string (search is case sensitive)
  26.   /B:[OPERATOR]FILESIZE
  27.       Delete files whose size (in byte) is less than, less equal, greater than,
  28.       greater equal, equal or not equal to the specified size.
  29.       If OPERATOR is omitted, less than is assumed.
  30.   /D  Delete empty subdirectories
  31.   /EA[:EXTENDED ATTRIBUTE]
  32.       Delete the extended attribute specified after the colon but do not delete
  33.       the file itself. If EXTENDED ATTRIBUTE is omitted all EAs of a file are
  34.       deleted.
  35.   /F  Deleted files cannot be recovered using the OS/2 UNDELETE command
  36.   /I  Ignore settings in environment variable XDEL-DEFAULT-OPTIONS
  37.   /L  Do not list deleted files
  38.   /N  Start deletion without warning
  39.   /O  Overwrite files before deletion
  40.   /O+ Rename, move and overwrite files before deletion
  41.   /P  Pause on each file
  42.   /Q  Pause on each directory
  43.   /R  Delete READ ONLY files
  44.   /S  Delete matching files in subdirectories
  45.   /T:[OPERATOR]YEAR[-MONTH[-DAY[-HOURS[-MINUTES]]]]
  46.       Delete files with last write access less than, less equal, greater than,
  47.       greater equal, equal or not equal to the specified date and time.
  48.       If OPERATOR is omitted, less than is assumed. Format of date and time is
  49.       yyyy-mm-dd-hh-mm.
  50.   /U:FILENAME
  51.       Exclude file(s) from deletion. FILENAME may contain wildcard characters.
  52.   /X  Do not delete files in READ ONLY directories
  53.   /Y  Deletion of empty subdirectories will also affect READ ONLY directories
  54.   /?  Display this help message
  55.  
  56. OPERATORs are:
  57.   LT  Less Than
  58.   LE  Less Equal
  59.   GT  Greater Than
  60.   GE  Greater Equal
  61.   EQ  EQual
  62.   NE  Not Equal
  63.  
  64. Options and operators are not case sensitive
  65.  
  66. The above options can be set by environment variable for permanent use:
  67.   SET XDEL-DEFAULT-OPTIONS=[/OPTION] [/OPTION] ...
  68. Options set by environment variable need not to be specified in the command
  69. line.
  70.  
  71.  
  72.  
  73. Installation
  74.  
  75. Copy XDEL.EXE to a directory referenced by the PATH environment variable.
  76.  
  77.  
  78. XDEL was developed using emx-gcc 0.9c. The executable in this package
  79. was created by the OS/2 Linker LINK386. It is a stand alone version, emx.dll
  80. is not needed.
  81.  
  82. Please send bug reports, comments and suggestions to klaus.joosz@usa.net.
  83.  
  84.  
  85. History
  86. -------
  87.  
  88. Version 1.03
  89.   
  90.   Fixed a bug with Novell NetWare 3.12: while scanning for subdirectories, 
  91.   normal files were found also. 
  92.  
  93.   Directories with the HIDDEN attribute are now found.
  94.  
  95.   Empty subdirectories with the READ ONLY attribute set will only be removed 
  96.   when the /Y option is used. 
  97.   It seems that OS/2 does not care about the READ ONLY attribute on local 
  98.   drives, so whether or not this attribute is set an empty subdirectory can 
  99.   be deleted with the RD command. On Novell network drives the READ ONLY 
  100.   attribute is supported.
  101.   Directory attributes can be displayed and removed with the ATTRIB command.
  102.   For I haven't found a command line tool to set directory attributes I wrote 
  103.   one of my own. The tool is called ATTRDIR.EXE and should be included in this 
  104.   package.
  105.  
  106.  
  107. Version 1.04
  108.  
  109.   Added switch /X to prevent files in READ ONLY directories from being deleted.
  110.  
  111.   Fixed a bug parsing the [DRIVE:][PATH]FILENAME expression in the command 
  112.   line.
  113.  
  114.   Added switch /T to exclude files with last write access newer than a certain
  115.   point of time from deletion. The last write access can be displayed by the
  116.   DIR command.
  117.  
  118.  
  119. Version 1.05
  120.  
  121.   Overwriting files now is significantly faster.
  122.  
  123.   Added new command line syntax: XDEL [DRIVE:]PATH [/OPTION] [/OPTION] ...
  124.   Now you can specify the name of a directory to delete all files in that
  125.   directory. Instead of
  126.     XDEL \TMP\*
  127.   you can type
  128.     XDEL \TMP
  129.   The empty subdirectory is not deleted automatically. To delete it add the /D
  130.   switch.
  131.  
  132.   Extended switch /T. Now you can delete files with a timestamp less than,
  133.   less equal, greater than, greater equal, equal or not equal a certain date
  134.   and time. To do so use the operators LT, LE, GT, GE, EQ and NE as mentioned
  135.   in the usage section of this file.
  136.   You can also combine two /T switches like that:
  137.     XDEL *.BAK /T:GE1997-05-01 /T:LE1997-05-31
  138.   This example shows how to delete all BAK files in the current directory
  139.   with last write access in May 1997.
  140.   If no operator is specified along with the /T switch LT is assumed.
  141.  
  142.   Added switch /B to select files by size. The size must be specified in
  143.   byte. This switch supports the operators LT, LE, GT, GE, EQ and NE.
  144.   Two /B switches can be combined like that:
  145.     XDEL *.BAK /B:GE1000 /B:LT10000
  146.   In this example all BAK files in the current directory with size from 1000
  147.   to 9999 byte are deleted.
  148.   If no operator is specified along with the /B switch LT is assumed.
  149.  
  150.   Added switch /A to delete files containing a certain string. If two or 
  151.   more /A switches are given only files containing all specified strings are
  152.   deleted.
  153.   String search is case sensitive.
  154.   If the string contains blank characters use double quotes like that:
  155.     XDEL *.BAK /A:"This string contains blank characters"
  156.   You can specify up to 16 /A switches in the command line.
  157.  
  158.   Added switch /EA to delete extended attributes of files.
  159.   For example, you can delete the .LONGNAME and the .VERSION attributes of
  160.   all BAK files by typing
  161.     XDEL *.BAK /EA:.LONGNAME /EA:.VERSION
  162.   Delete all extended attributes of all BAK files by typing
  163.     XDEL *.BAK /EA
  164.   If the /EA switch is given only extended attributes of files are deleted
  165.   not the files themselves. To delete extended attributes of read only
  166.   files add the /R switch to the command line. Extended attributes of 
  167.   directories are not deleted.
  168.   You can specify up to 16 /EA: switches in the command line.
  169.  
  170.   Pressing any key during execution of XDEL brings up the dialog
  171.   "Terminate XDEL ([Y]es [N]o) [A]bort)". When overwriting large files
  172.   or searching for text in large files the dialog might not appear
  173.   immediately after the key stroke.
  174.  
  175.  
  176. Version 1.06
  177.  
  178.   Changed dialog "Terminate XDEL ([Y]es [N]o) [A]bort)" to 
  179.   "Abort XDEL ([Y]es [N]o)".
  180.  
  181.   Fixed a bug when deleting all extended attributes of files via the /EA
  182.   switch. Version 1.05 deleted up to a maximum number of 32 EAs per file.
  183.   Now ALL extended attributes of a file are deleted.
  184.  
  185.   Added switch /O+ to clear information stored in the name, location and
  186.   timestamp of a file. This is a extension of the /O switch.
  187.   Even if a file cannot be recovered you can guess its contents from its
  188.   name, its directory and its timestamp. The switch /O+ helps you to avoid
  189.   this.
  190.   On HPFS drives XDEL will move the file to the root directory of its drive,
  191.   rename it, reset its timestamps, overwrite its contents with null
  192.   characters and finally delete it.
  193.   For example, you issue the command
  194.     XDEL C:\SECRET_SERVICE\TOP_AGENTS\JAMES_BOND.TXT /O+
  195.   This will move the file JAMES_BOND.TXT from the directory TOP_AGENTS to
  196.   the root directory of drive C:, rename it to something like 15320001.tmp
  197.   and set its timestamps to 01-01-1980 00:00 before it is overwritten and
  198.   deleted.
  199.   After this procedure a file recovery tool such as File Phoenix or GammaTech
  200.   Undelete will not find a file named JAMES_BOND.TXT, neither in its original
  201.   directory nor in any other directory.
  202.   On FAT drives moving a file from one directory to another will not clear
  203.   the filename completely in its original directory. Its first character
  204.   will be replaced by a '?' to mark it deleted and a file recovery tool
  205.   would find the filename entry ?AMES_BOND.TXT (if a FAT drive could handle
  206.   long filenames). Therefore on FAT drives and on any other non HPFS drives
  207.   XDEL will rename a file in its original directory without moving it.
  208.  
  209.   Added switch /U:FILENAME to prevent the file(s) matching FILENAME from
  210.   being deleted. FILENAME may contain wildcard characters but must not
  211.   contain any drive or path information. The following example clears the
  212.   cache directory of a famous navigator from all temporary files but keeps
  213.   the file FAT.DB:
  214.     XDEL \NETSCAPE\CACHE\*.* /U:FAT.DB
  215.   You may want to keep all the HTM files also:
  216.     XDEL \NETSCAPE\CACHE\*.* /U:FAT.DB /C:*.HTM
  217.   A maximum number of 16 /U switches can be handled by XDEL.
  218.  
  219.  
  220.  
  221.  
  222.                             Klaus Joosz
  223.                             September 30, 1997
  224.