Site icon Winhelponline

New Command-Line Parameters for Defrag.exe in Windows 7

Several new switches or parameters are added to the defragmentation console tool (defrag.exe) in Windows 7. The switches are /E, /H, /M, /T, /U & /X. Here is the entire list of parameters supported by defrag.exe (v6.1) in Windows 7:

Switch Description
/A Perform analysis on the specified volumes.
/C Perform the operation on all volumes.
/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.
/V Print verbose output containing the fragmentation statistics.
/X Perform free space consolidation on the specified volumes.

Likewise, the following switches are dropped in Windows 7.  Although the following switches are not listed when running "defrag.exe /?", Defrag.exe in Windows 7 still accepts these switches. It’s not clear if they’re left for backward compatibility. Perhaps we should wait for official note from Microsoft.

Switch Description
/R Performs partial defragmentation (default). Attempts to
consolidate only fragments smaller than 64 megabytes (MB).
/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.

Exit mobile version