home *** CD-ROM | disk | FTP | other *** search
/ Dr. CD ROM (Annual Premium Edition) / premium.zip / premium / DOSUTIL1 / DEL101.ZIP / DELETE.DOC next >
Text File  |  1992-08-24  |  6KB  |  173 lines

  1. DELETE.DOC -- DOCUMENTATION FOR DELETE.EXE
  2.  
  3.  
  4. WHAT IS THIS?
  5.  
  6. DELETE.EXE is an enhancement of the DEL or ERASE internal command that comes
  7. with DOS that:
  8.  
  9.     o allows multiple file specifications on the command line;
  10.  
  11.     o will optionally delete Hidden, System, or Read Only files;
  12.  
  13.     o will optionally prompt for permission to delete any file;
  14.  
  15.     o will optionally delete files in directories below the current one;
  16.  
  17.     o will optionally remove empty directories below the current one;
  18.  
  19.     o will optionally overwrite files before deleting them.
  20.  
  21.  
  22. HOW DO I RUN IT?
  23.  
  24. Syntax:
  25. D:\MPJ\DELETE\DELETE.EXE [switches] [filespec...]
  26. Switches start with / (not -), and are case insensitive.
  27.   /? or /H Help: show help message
  28.   /F or /Z Force or Zap: delete hidden, system, and read-only files
  29.   /G Overwrite eight times, then delete permanently
  30.   /O Overwrite once then delete permanently
  31.   /P or /C Prompt y/N for Confirmation to delete each file
  32.   /Q Quiet: don't display names of deleted files
  33.   /R Recursively remove empty subdirectories
  34.   /S Recurse through subdirectories but don't remove empty ones
  35.  
  36. Note: /P cannot be used with /Q.
  37. Note: doesn't ask 'Are you sure?' to delete a directory without /P
  38.  
  39. For example:
  40.  
  41. DELETE *.OBJ *.SYM
  42. Deletes all normal files with the suffixes .OBJ and .SYM in the current
  43. directory.
  44.  
  45. DELETE /P *.*
  46. Presents the name of each file in the current directory to you and asks if you
  47. want to delete it.
  48.  
  49. DELETE /O C:\PRIVATE\SALARY.LST
  50. PERMANENTLY deletes the file C:\PRIVATE\SALARY.LST.
  51.  
  52. DELETE /S /P C:\*.BAK
  53. Presents the name of every file on drive C: with a name ending in .BAK to you
  54. and asks you if you want to delete it.
  55.  
  56.  
  57. ARE YOU SURE?
  58.  
  59. The DOS DEL command sometimes asks you if you are sure, and sometimes it
  60. doesn't.  If you enter a file specification that isn't *.* or a directory
  61. name, DOS won't ask you permission, even if your file specification matches
  62. all of the files in the directory.  A safer approach is to show you the file
  63. name of each file, then ask if you want to delete it, like DELETE does when
  64. you specify the /P option.  That is what the DELQ.BAT file does.  If you find
  65. the "Are you sure?" prompt to be an annoyance, and like to live a little
  66. dangerously (like I do), then leave the /P switch off.  Then you won't be
  67. asked if you are sure, even if you are deleting entire subdirectories.
  68.  
  69. At the y/N prompt, pressing y or Y will result in the file being deleted or
  70. the directory being removed.  Any other key will cause the file or directory
  71. to be left alone.
  72.  
  73.  
  74. OVERWRITING
  75.  
  76. The overwrite options are intended to PERMANENTLY delete sensitive data.
  77.  
  78. /O Causes one overwrite of the file with the value 34 hex, then the value CB
  79. hex, followed b a verification that the value CB was in fact written over the
  80. file.  If the overwrite fails for any reason, the message "OVERWRITE FAILED"
  81. will appear on the screen.
  82.  
  83. /G Does what /O does four times.  This is for the purpose of obliterating a
  84. file beyond the possibility of recovery even with sophisticated lab equipment
  85. that can detect what was overwritten a few times by the strength of the
  86. magnetic fields on the disk.
  87.  
  88. Either one of these options will cause standard unerase or undelete utilities
  89. to fail, unless you have some TSR operating that defeats the overwrites.
  90.  
  91. Overwrites occur in 1024 byte blocks, so if you are using a disk cluster size
  92. that is larger, there may be data after the end of a file that does not get
  93. overwritten.  Likewise, if you are using a utility that compresses data on
  94. your disk on the fly, the overwriting data will likely be smaller than the
  95. data being overwritten, thus defeating the security of the overwrites.  In
  96. most cases, however, if you use one of these options, there is NO WAY to
  97. recover the lost data.
  98.  
  99.  
  100. SUGGESTED ALIAS
  101.  
  102. If you are using DOSKEY, CED, or some similar program, you can override DOS's
  103. DEL function with a command alias, like
  104.  
  105. DOSKEY DEL=DELETE /P $*
  106.  
  107. This would be a safer way to delete -- asking you for confirmation with each
  108. file.  On the other hand, if you work with data that you need to keep private
  109. on a computer that other people need access to, you may prefer to add the
  110. overwrite option, like
  111.  
  112. DOSKEY DELQ=DELETE /P /O $*
  113.  
  114. If you get tired of the y/N prompts, you could leave the /P option out of the
  115. above examples.
  116.  
  117.  
  118. RECURSION THROUGH SUBDIRECTORIES
  119.  
  120. To delete all files in the current directory and all subdirectories below this
  121. one AND to remove all empty subdirectories below this one, use the /R switch:
  122.  
  123. DELETE /R *.*
  124.  
  125. To delete specified files in the current directory and all subdirectories, but
  126. remove no subdirectories, use the /S switch:
  127.  
  128. DELETE /S *.BAK *.BK!
  129.  
  130. These recursion options should obviously be used with caution, but they can
  131. save you a lot of time when you need them.
  132.  
  133.  
  134. DANGER!
  135.  
  136. Because this program was designed to delete data, you need to watch what you
  137. are doing and not delete anything you don't want to.  Be especially careful if
  138. you are using the /Z, /F, /R, /S, /O, or /G options.  I recommend the use of
  139. the /P or /C options as much as you can stand it, unless you are sure you know
  140. what you are doing.
  141.  
  142. WARNING:  DELETING THE SYSTEM FILES IN THE ROOT DIRECTORY OF YOUR BOOT DRIVE
  143. WILL MAKE IT INCAPABLE OF BOOTING.
  144.  
  145. WARNING:  ONCE YOU DELETE A FILE WITH THE /O OR /G OPTIONS, THERE IS NO WAY
  146. YOU CAN GET IT BACK WITH ANY UNERASE UTILITY THAT I AM AWARE OF.
  147.  
  148.  
  149. REVISION HISTORY
  150.  
  151. 1.01  Minor display formatting changes.
  152. 1.00  Initial release.
  153.  
  154.  
  155. LEGALITIES
  156.  
  157. DELETE version 1.01 Copyright (C) 1992 Michael Paul Johnson.  All rights
  158. reserved. Even though I am aware of no bugs in this program, it is provided
  159. with no warranty.  The user assumes all risk with respect to data loss due to
  160. improper operation or malfunction of this program.  However, if you find a
  161. bug, please tell me so I can fix it.
  162.  
  163. Shareware: to register & get an original disk with this and other programs on
  164. it, please send $20 & the name of this program to: 
  165.  
  166.     Mike Johnson
  167.     PO BOX 1151
  168.     LONGMONT CO 80502-1151
  169.     USA
  170.  
  171. Support for registered users via Rainbow Missions BBS 303-938-9654
  172.  
  173.