Home Page
Doing
Windows
Windows Tips Categories
|
MS-DOS
Tips
ERASING ALL FILES WITHOUT A CONFIRMATION
While you're in that DOS window, here's another
thing you might try: you presumably know that if you type
in "DEL *.*" (or "ERASE *.*") you can
then delete (or erase) all the files in the current
directory, but only after being asked to confirm that
this is what you really want to do, with a question such
as this: "All files in directory will be deleted.
Are you sure (Y/N)?", after which you have to type
the Y (for Yes) or the N (for No) key and a carriage
return. If you are REALLY sure you want to delete all the
files in the current directory then all you have to do is
to omit the dot (or period) in the specification, like
this: "DEL **" or "ERASE **", and the
specified erasing of all files will proceed without a
delete confirmation message.
|