|
DEL (ERASE)
DEL is the Delete program in DOS. DEL allows you to delete
files. For example, typing DEL TEMP.TMP will delete the file
temp.tmp. Warning! Using the DEL command in DOS is not like
deleting in Windows, there is no Recycle Bin, the files are
gone. If you accidentally delete systems files, you are
going to have some problems. Only delete files that you are
sure about. Deletes one or more files.
Syntax
DEL [options] [/A:file_attributes] files_to_delete
Examples:
To delete all files with a .TXT extension
DEL *.TXT
To delete all read only files
DEL /a:R *
Batch File Commands
|