Like this CertiGuide? Get it in PDF format!
Click Here!
Use coupon code "SAVE50" to get it half price!

Custom Search







Table Of Contents  CertiGuide to A+ (Operating Systems)
 9  Chapter 0011:  DOS
      9  IV  COMMAND.COM and Basic DOS Commands

Previous Topic/Section
The 8.3 Filename Limit and Common Extensions
Previous Page
Pages in Current Topic/Section
1
Next Page
REN (RENAME)
Next Topic/Section

DEL / ERASE

Both DEL (Delete) and ERASE mean the same thing, they delete files. DEL is more popular than ERASE, simply because there are fewer keystrokes. Typing DEL *.* would delete everything, period. Due to user feedback, starting with DOS 3, when DEL *.* was typed, DOS offers the following prompt:

“Are you sure?Y/N”. Y (YES) N (NO)

You can see examples of this in Figure 141.


Figure 141: DOS asks for confirmation before deleting all files

 


[spacer]Bye-bye hard drive?

DOS
2.x DEL *.* no confirmation - DEL *.* would silently do your bidding without confirmation.

DOS 3 DEL *.* confirmation - “Are you sure?Y/N”.


Yes, this author quickly and solidly erased the root entries of a 10MG hard drive, thinking I was logged to the A drive, and cleaning up an old diskette.

In a few keystrokes, COMMAND.COM, and the DOS program extensions (.sys files) along with a painfully created CONFIG.SYS and AUTOEXEC.BAT file were sent to never-never land.

This sad fact in DOS 2.x made Peter Norton a great deal of money with the 3rd party utility, Norton Unerase, whose functionality (as you might expect) was to recover files lost by errant “del” or “erase” commands. Microsoft purchased Unerase from Norton and included it with DOS 5.

For the Practice exercise, create a text file in Notepad by going to start, programs, accessories, Notepad and creating a bit of text, then Practice DEL (deleting) the file in DOS.

8 Practice DEL/ERASE


Previous Topic/Section
The 8.3 Filename Limit and Common Extensions
Previous Page
Pages in Current Topic/Section
1
Next Page
REN (RENAME)
Next Topic/Section

If you find CertiGuide.com useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider buying an inexpensive PDF equivalent of the CertiGuide to A+ (Operating Systems) from StudyExam4Less.com. (Use coupon code "SAVE50" to save a full 50% off the already low price!) Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

CertiGuide to A+ (Operating Systems) (http://www.CertiGuide.com/apluso/) on CertiGuide.com
Version 1.0 - Version Date: January 7, 2005

Adapted with permission from a work created by Tcat Houser.
CertiGuide.com Version Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.