DEL and ERASE + Deleting Files
PC-DOS 2.0+ (revised from 1.1)
MS-DOS equivalent: DEL/ andERASE (2.0+)
[d:][path]filename Specifies the file or group of
files to be erased.
BEFORE: File directory lists MSTEST.TXT in current directory.
AFTER: File directory no longer lists MSTEST.TXT in current
BEFORE: File directory lists all files created in current
AFTER: File directory lists no files in current directory.
Note that when you use the global wildcard *.*, you will be
prompted to confirm the deletion (see the MESSAGES that follow).
BEFORE: File directory lists all files in directory C:\WP\FILES
with the extension .CAP.
AFTER: File directory lists no files with the extension .CAP in
BEFORE: File directory lists all files in directory C:\WP.
AFTER: File directory lists no files in directory C:\WP.
Are you sure (Y/N)?
You have specified *.* (all files regardless of extension). Enter
Y to erase all files on the specified drive and directory;
otherwise, enter N.
File not found
DOS was unable to locate the file(s) you specified. Check the
path name and try again.
Invalid number of parameters
Check the path name and try again.
You can restore files deleted with the DEL or ERASE command
with a DOS utility such as the Norton Utilities or Mace
Utilities, or by using the DOS DEBUG program.
The DEL and ERASE commands are used to erase files, not
directories. You may issue the command as DELETE, DEL, or ERASE.
If no drive is specified, the current drive is assumed. If you
specify a directory instead of a file, all files in that
directory will be erased. You cannot delete files that have been
marked as read-only. Versions of the command after version 1.0
require confirmations to prompts before erasing.
[For related topics, press R]
RENAME EN) Command
|file: /Techref/dos/command/erase.htm, 2KB, , updated: 1999/2/20 11:24, local time: 2020/8/9 04:04,
|©2020 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://techref.massmind.org/techref/dos/command/erase.htm"> dos command erase</A>
|Did you find what you needed?|
Welcome to massmind.org!
Welcome to techref.massmind.org!