DEFRAG
Defragment hard drive.
Syntax
DEFRAG <
volume> [-a] [-f] [-v] [-?]
Options
volume drive letter or mount point (d: or d:\vol\mountpoint)
-a Analyze only
-f Force defragmentation even if free space is low
-v
Verbose output
Example:
DEFRAG c:
“How can you expect to govern a country that has two hundred and forty-six kinds of cheese?”
~ Charles de Gaulle
DEL
Delete one or more files.
Syntax
DEL [
options] [/A:
file_attributes]
files_to_delete
Key
files_to_delete : This may be a filename, a list of files or a
Wildcard
options
/P Give a Yes/No Prompt before deleting.
/F Ignore read-only setting and delete anyway (FORCE)
/S Delete from all Subfolders (DELTREE)
/Q
Quiet mode, do not give a Yes/No Prompt before deleting.
/A Select files to delete based on
file_attributes
file_attributes:
R Read-only -R NOT Read-only
S
System -S NOT System
H Hidden -H NOT Hidden
A Archive -A NOT Archive
Wildcards: These can be combined
with part of a filename
* Match any characters
? Match any ONE character
If a folder name is
given instead of a file, all files in the folder will be deleted, but the folder itself
will not be removed.
Examples:
Delete "Hello World.txt"
DEL "Hello World.txt"
Delete all files that start with the letter A
DEL A*
Delete all files that end with the letter A
DEL *A.*
Delete all files with a .doc extension:
DEL *.doc
Delete all read only files:
DEL /a:R *
Delete all files including any that are read only:
DEL /F *
Chia sẻ với bạn bè của bạn: