del or erase


del or erase

The del command is used to delete one or more files from the command line without sending them to the Recycle Bin. The del options are:

 del [/p] [/f] [/s] [/q] [/a:   attributes   ]   filename   

Option

Description

filename

Specifies the file(s) to delete (* and ? wildcards are supported)

/p

Prompts for confirmation before deleting each file

/f

Forces deleting of read-only files

/s

Deletes specified files in all subdirectories (when using wildcards)

/q

Quiet mode; do not prompt if filename is *.*

/a: attributes

Selects files to delete based on attributes (read-only, hidden, system, or archive)

Examples

 del myfile.txt del c:\files\myfile.txt del c:\files\myfile.* /p 


Windows XP Pocket Reference
Windows XP Pocket Reference
ISBN: 0596004257
EAN: 2147483647
Year: 2001
Pages: 154
Authors: David A. Karp

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net