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: 2018/7/22 03:54,
|©2018 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://www.piclist.com/techref/dos/command/erase.htm"> dos command erase</A>
|Did you find what you needed?|
PICList 2018 contributors:
o List host: MIT, Site host massmind.org, Top posters @20180722 RussellMc, Van Horn, David, Sean Breheny, David C Brown, Isaac M. Bavaresco, Bob Blick, Neil, Denny Esterline, John Gardner, Brent Brown,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!