We have covered material regarding Disk defragmentation in the past, you may check one of the important posts for Windows 7 disk defragmentation here. No doubt Windows 7 has many added features in comparison to Windows Vista and XP, one of them is the Advanced Disk Defragmentation feature, now you may easily perform common disk defragmentation tasks from the command line as well.
Now first of all launch the command prompt by clicking Start and then type cmd and press Enter. The command prompt will be loaded, now you may run the defrag command to perform the necessary operations. But you will need to use different switches with the defrag command in order to perform different tasks relevant to defragmentation. Simply type defrag and hit enter, Windows will then list down all of its available options(also called the switches).

Now let me tell you some of the common options which you may use with the defrag command to perform disk defragmentation.
defrag /r Defrags multiple drives simultaneously
defrag –a Performs the disk defrag analysis
defrag –v Prints the defrag results
defrag –w Defrags each and every thing
defrag C: -v –w Defrags the whole C drive
For example, here I executed the disk defragmentation analysis command (defrag -a) on my C drive successfully.

The core benefit of performing the disk defragmentation via command line is that the speed of the disk defragmentation process is exceptionally fast. Enjoy!




