Defrag Options & Command line switches in Windows 7 | 8

Speed Up My PC

The Defrag tool in Windows 7 – and Windows 8 too – offers some additional options compared to that in Windows Vista. Its command line version has some additional switches. Open an elevated command prompt windows.

Defrag Command line switches in Windows 7 | 8

Type Defrag /? and hit Enter. This will show you all the defragmentation options and command line switches.

cmddefrag Defrag Options & Command line switches in Windows 7 | 8

Here is the list of Defrag switches:

Value   Description

/A      Perform analysis on the specified volumes.

/C      Perform the operation on all volumes.

/D      Perform traditional defrag (this is the default).

/E      Perform the operation on all volumes except those specified.

/H      Run the operation at normal priority (default is low).

/K      Perform slab consolidation on the specified volumes.

/L      Perform retrim on the specified volumes.

/M      Run the operation on each volume in parallel in the background.

/O      Perform the proper optimization for each media type.

/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.

So, if you open cmd and type in “defrag /C /H /M” it will run defrag on all volumes, at a higher priority, in parallel.

You might also want to check out some of the best free defragmentation software for Windows 7.

Posted by on , in Category Windows with Tags
Anand aka HappyAndyK is an end-user Windows enthusiast, a Microsoft MVP in Windows Desktop Experience since 2007, and the Admin of TheWindowsClub.com, TheGeeksClub.com & WinVistaClub.com. Creating a System Restore Point before trying out a new software or a tweak is always recommended.

Comments are closed.