please dont rip this site
DEL and ERASE + Deleting Files

Deletes files.

VERSION

PC-DOS 2.0+ (revised from 1.1)

MS-DOS equivalent: DEL/ andERASE (2.0+)

TYPE

Internal

SYNTAX

ERASE [d:][path]filename

DEL [d:][path]filename

OPTIONS

[d:][path]filename Specifies the file or group of

files to be erased.

EXAMPLES

DEL TEST.TXT

BEFORE: File directory lists MSTEST.TXT in current directory.

AFTER: File directory no longer lists MSTEST.TXT in current

directory.

ERASE A:*.*

BEFORE: File directory lists all files created in current

directory.

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).

DEL C:\WP\FILES\*.CAP

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

directory C:\WP\FILES.

DEL C:\WP

BEFORE: File directory lists all files in directory C:\WP.

AFTER: File directory lists no files in directory C:\WP.

MESSAGES

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.

UNDO

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.

NOTE

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]

SEE ALSO

ATTRIB Command

COPY Command

DIR Command

PRINT Command

RENAME EN) Command

REPLACE Command

SHARE Command

TYPE Command

VERIFY Command

XCOPY Command



See also:


file: /Techref/dos/command/erase.htm, 2KB, , updated: 1999/2/20 10:24, local time: 2017/12/16 03:21,
TOP NEW HELP FIND: 
54.163.61.66:LOG IN

 ©2017 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?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/dos/command/erase.htm"> dos command erase</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2017 contributors:
o List host: MIT, Site host massmind.org, Top posters @20171216 RussellMc, Van Horn, David, Sean Breheny, James Cameron, alan.b.pearce, IVP, Neil, Bob Blick, David C Brown, John Gardner,
* 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!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .