This command controls Windows Defragmenter. For more information about this utility, see Chapter 20, "Disks and File Systems."
Syntax
defrag [drive: | /all] [/F | /U | /Q] [/noprompt] [/concise | /detailed]
Parameters
drive:
Drive letter of the disk to be optimized.
/all
Defragment all local, nonremovable drives.
/F
Defragment files and free space.
/U
Defragment files only.
/Q
Defragment free space only.
/concise
Display the Hide Details view (default).
/detailed
Display the Show Details view.
/noprompt
Unattended mode; do not stop and display confirmation messages.