defrag /?
Microsoft Disk Defragmenter
Copyright (c) 2007 Microsoft Corp.
Description:
Locates and consolidates fragmented files on local volumes to
improve system performance.
Syntax:
defrag <volumes> | /C | /E <volumes> [/H] [/M | [/U] [/V]]
defrag <volumes> | /C | /E <volumes> /A [/H] [/M | [/U] [/V]]
defrag <volumes> | /C | /E <volumes> /X [/H] [/M | [/U] [/V]]
defrag <volume> /T [/H] [/U] [/V]
Parameters:
Value Description
<volume> Specifies the drive letter or mount point path of the volume to
be defragmented or analyzed.
/C Defragments all volumes on this computer.
/A Performs fragmentation analysis only.
/R Performs partial defragmentation (default). Attempts to
consolidate only fragments smaller than 64 megabytes (MB).
/E Perform the operation on all volumes except those specified.
/H Run the operation at normal priority (default is low).
/M Run the operation on each volume in parallel in the background.
/T Track an operation already in progress on the specified volume.
/U Print the progress of the operation on the screen.
/X Perform free space consolidation on the specified volumes.
/B Performs boot optimization by moving programs and Windows
boot files to the boot portions of the disk.
/W Performs full defragmentation. Attempts to consolidate all file
fragments, regardless of their size.
/F Forces defragmentation of the volume when free space is low.
/V Specifies verbose mode. The defragmentation and analysis output
is more detailed.
/? Displays this help information.
Examples:
defrag D:
defrag D:\vol\mountpoint /W /F
defrag D: /A /V
defrag /C /V
defrag C: /U /V
defrag C: D: /M
defrag C:\mountpoint /A /U
defrag /C /H /V