home *** CD-ROM | disk | FTP | other *** search
- ----------------------- ERASE - Internal DOS Command -------------------------
-
- ERASE removes files from disk on the specified drive in the specified directory.
-
- FORMAT: ERASE [d:][path][filename[.ext]]
-
- REMARKS:
-
- d: - the drive letter of the disk whose files are to be erased. If
- omitted, the default drive is assumed.
- path - the directory path of the directory whose files are to be erased.
- If omitted, the current directory is assumed.
- filename - the filename of the file(s) to be erased.
- .ext - the filename extension of the file(s) to be erased.
-
- DEL can be used as a short form of ERASE.
-
- If no filename is given, *.* (all files) is assumed.
-
- Global characters (? and *) are allowed in filenames and extensions. Take
- care in using these characters since many files can be erased with one ERASE
- command.
-
- If you use *.* for the filename to erase all files in a directory or a disk,
- DOS will issue the message:
-
- Are you sure(Y/N)
-
- Entering N (and then RETURN) will abort the ERASE command; entering Y
- (and then RETURN) will execute the command. This message/prompt warns
- you that many files may be erased and gives you a chance to change
- your mind.
-
- ERASE will not work for:
-
- Hidden DOS system files.
- The "." and ".." files in a subdirectory.
- Files marked as read-only (DOS Version 3).
- Subdirectories. Use the RMDIR command to remove a subdirectory.
-
-
- NOTE: The ERASE command does not destroy data. When a file is erased, the
- directory entry for the file is altered to indicate that the file is no
- longer in use. The disk sectors that contain the file's contents are then
- available for reuse. If these sectors have not been reused, it is possible
- to retrieve part or all of the erased file. Utility programs that can
- restore erased files may be purchased. One such utility program is found in
- a package called "The Norton Utilities."
-
-
- WARNING: Global characters (? and *) are allowed in filenames and extensions.
- Take care in using these characters since many files can be erased with one
- ERASE command. If no filename is specified, ERASE assumes all files (*.*)
- are to be erased.
-
-
- EXAMPLES:
-
- Erase the file MYFILE in the current directory on the default drive:
-
- ERASE MYFILE
-
-
- Erase the file MYFILE in current directory on drive B. The default drive is A:
-
- ERASE B:MYFILE
-
-
- Erase all files in the BUDGET directory on the default drive. BUDGET is a
- subdirectory of the root directory:
-
- ERASE \BUDGET
-
-
- Erase the file MYFILE in the BUDGET directory on the default drive. BUDGET is a
- subdirectory of the root directory:
-
- ERASE \BUDGET\MYFILE
-
-
- Erase all files in the current directory on the default drive:
-
- ERASE *.*
-
-
- Erase all files in the current directory on the default drive whose filenames
- are eight characters long and end in "84." All such files are to be erased
- regardless of their filename extensions:
-
- ERASE ??????84.*