home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
a
/
ael102.zip
/
DELETE.DOC
next >
Wrap
Text File
|
1993-02-08
|
9KB
|
271 lines
DELETE.DOC -- DOCUMENTATION FOR DELETE.EXE
WHAT IS THIS?
DELETE.EXE is an enhancement of the DEL or ERASE internal command
that comes with DOS that:
o allows multiple file specifications on the command line;
o will optionally delete Hidden, System, or Read Only files;
o will optionally prompt for permission to delete any file;
o will optionally delete files in directories below the
current one;
o will optionally remove empty directories below the current
one;
o will optionally overwrite files before deleting them.
HOW DO I RUN IT?
Syntax:
D:\MPJ\DELETE\DELETE.EXE [switches] [filespec...]
Switches start with / (not -), and are case insensitive.
/? or /H Help: show help message
/F or /Z Force or Zap: delete hidden, system, and read-only
files
/G Overwrite eight times, then delete permanently
/O Overwrite twice then delete permanently
/P or /C Prompt y/N for Confirmation to delete each file
/Q Quiet: don't display names of deleted files
/R Recursively remove empty subdirectories
/S Recurse through subdirectories but don't remove empty ones
Note: doesn't ask 'Are you sure?' to delete a directory without
/P
For example:
DELETE *.OBJ *.SYM
Deletes all normal files with the suffixes .OBJ and .SYM in the
current directory.
DELETE /P *.*
Presents the name of each file in the current directory to you
and asks if you want to delete it. Y or y cause the file to be
deleted, Esc or Ctrl-C cause the program to exit, anything else
skips the file.
DELETE /O C:\PRIVATE\SALARY.LST
PERMANENTLY deletes the file C:\PRIVATE\SALARY.LST.
DELETE /S /P C:\*.BAK
Presents the name of every file on drive C: with a name ending in
.BAK to you and asks you if you want to delete it.
ARE YOU SURE?
The DOS DEL command sometimes asks you if you are sure, and
sometimes it doesn't. If you enter a file specification that
isn't *.* or a directory name, DOS won't ask you permission, even
if your file specification matches all of the files in the
directory. A safer approach is to show you the file name of each
file, then ask if you want to delete it, like DELETE does when
you specify the /P option. That is what the DELQ.BAT file does.
If you find the "Are you sure?" prompt to be an annoyance, and
like to live a little dangerously (like I do), then leave the /P
switch off. Then you won't be asked if you are sure, even if you
are deleting entire subdirectories.
At the y/N prompt, pressing y or Y will result in the file being
deleted or the directory being removed. Any other key will cause
the file or directory to be left alone.
OVERWRITING
The overwrite options are intended to PERMANENTLY delete
sensitive data.
/O Causes one overwrite of the file with the value 34 hex, then
the value CB hex, followed by a verification that the value CB
was in fact written over the file. If the overwrite fails for
any reason, the message "OVERWRITE FAILED" will appear on the
screen. Note that CB hex is the compliment of 34 hex. After each
of the write operations, the DOS reset disk function (interrupt
21 hex, function 0D hex) is called in hopes that this will
prevent write delay cache programs from defeating the overwrite.
This option also deletes the name in the directory entry.
/G Does what /O does four times. This is for the purpose of
obliterating a file beyond the possibility of recovery even with
sophisticated lab equipment that can detect what was overwritten
a few times by the strength of the magnetic fields on the disk.
Either one of these options will cause standard unerase or
undelete utilities to fail, unless you have some TSR operating
that defeats the overwrites.
Overwrites occur in 1024 byte blocks, so if you are using a disk
cluster size that is larger, there may be data after the end of a
file that does not get overwritten. Likewise, if you are using a
utility that compresses data on your disk on the fly, the
overwriting data will likely be smaller than the data being
overwritten, thus defeating the security of the overwrites. In
most cases, however, if you use one of these options, there is NO
WAY to recover the lost data. Data recovery utilities probably
won't even be able to tell you the name of the files that were
deleted, let alone what was in them.
SUGGESTED ALIAS
If you are using DOSKEY, CED, or some similar program, you can
override DOS's DEL function with a command alias, like
DOSKEY DEL=DELETE /P $*
This would be a safer way to delete -- asking you for
confirmation with each file. On the other hand, if you work with
data that you need to keep private on a computer that other
people need access to, you may prefer to add the overwrite
option, like
DOSKEY DELQ=DELETE /P /O $*
If you get tired of the y/N prompts, you could leave the /P
option out of the above examples.
RECURSION THROUGH SUBDIRECTORIES
To delete all files in the current directory and all
subdirectories below this one AND to remove all empty
subdirectories below this one, use the /R switch:
DELETE /R *.*
To delete specified files in the current directory and all
subdirectories, but remove no subdirectories, use the /S switch:
DELETE /S *.BAK *.BK!
These recursion options should obviously be used with caution,
but they can save you a lot of time when you need them.
DANGER!
Because this program was designed to delete data, you need to
watch what you are doing and not delete anything you don't want
to. Be especially careful if you are using the /Z, /F, /R, /S,
/O, or /G options. I recommend the use of the /P or /C options
as much as you can stand it, unless you are sure you know what
you are doing.
WARNING: DELETING THE SYSTEM FILES IN THE ROOT DIRECTORY OF YOUR
BOOT DRIVE WILL MAKE IT INCAPABLE OF BOOTING.
WARNING: ONCE YOU DELETE A FILE WITH THE /O OR /G OPTIONS, THERE
IS NO WAY YOU CAN GET IT BACK WITH ANY UNERASE UTILITY THAT I AM
AWARE OF.
LEGALITIES
DELETE version 1.02 Copyright (C) 1992-1993 Michael Paul Johnson.
All rights reserved. Even though I am aware of no bugs in this
program, it is provided with no warranty. The user assumes all
risk with respect to data loss due to improper operation or
malfunction of this program. However, if you find a bug, please
tell me so I can fix it. This is share ware. You are free to
copy and distribute without modification for the purpose of
evaluation. If you decide to use this program regularly, you are
required to register it.
REGISTRATION FEES & BENEFITS
For original disk, printed documentation, and registration: $15.
For registration only, $10 per copy. (No disk will be sent, but
your name & address will be added to the registration data base).
For site license registration, unlimited copies for use at the
same corporation: $100. Includes one original disk and one set
of printed documentation.
Please send registration fee, the name of this program, and, if
applicable, the size of disk you want (3.5" or 5.25") to:
Mike Johnson
PO BOX 1151
LONGMONT CO 80502-1151
USA
HOW TO CONTACT THE AUTHOR
1. By mail at the above address.
2. At the Rainbow Missions BBS, 303-938-9654. The latest
versions of Mike Johnson's software are here. (This is the
fastest way).
3. Internet: mikej@exabyte.com
4. CompuServe: 71331,2332
5. At home at 303-772-1773, on Saturdays only.
REVISION HISTORY
6 Feb 93 1.02 Added disk reset function. Made Ctrl-C & Esc
exit program at y/N prompt. Increased depth
of directory recursion possible.
24 Aug 92 1.01 Minor display formatting changes.
29 Apr 92 1.00 Initial release.
INVOICE
Remit to: From:
Mike Johnson ______________________
PO Box 1151 ______________________
Longmont CO 80502-1151 ______________________
______________________
Contact person:
______________________
______________________
Quantity Description Unit Price Total
DELETE registration with disk
________ & printed documentation. $15.00 ______
DELETE single copy registration
________ only. $10.00 ______
Site license for unlimited use
of DELETE at one corporation
(includes one disk & printed
________ documentation). $100.00 ______
Total ______
I prefer 5.25"____ 3.5"____ disks.
Note that the DELETE software has been delivered and accepted by
the customer. Upon reciept of this paid invoice, the printed
documentation and disks paid for will be sent.