How to Defragment Hard Drives From The Command Prompt

by VISHAL on October 23, 2009 · Windows Tips

  • Share

Hard_Disk_cleanerMicrosoft windows comes with a powerful defragmentation utility, there might be instances when you would want to defragment your hard drives using the command line. This is very simple and easiest way to fragment the local drives.Running the disk defragmenter in command-line uses less system rescources than the GUI version and often completes faster.

Follow the simple steps :

1.Open the start menu, and click on “Run”. After this, type in cmd . A command-line window will appear.

2.To run the Windows Disk defragmenter, simply type in defrag <volume you wish to defragment> ie: If you want to defragment C drive then just type defrag c:

Microsoft has provided the additional parameters to simplified the Defragmentation of drives. So you can use this options in the command line.

Defragmenter

Parameters :

/a : Analyzes the volume and displays a summary of the analysis report.

/v : Displays the complete analysis and defragmentation reports.

When used in combination with /a, displays only the analysis report. When used alone, displays both the analysis and defragmentation reports.

/f : Forces defragmentation of the volume regardless of whether it needs to be defragmented.

/? : Displays help at the command prompt.

Syntax :

  • defrag volume
  • defrag volume [/a]
  • defrag volume [/a] [/v]
  • defrag volume [/v]
  • defrag volume [/f]

Give a try to this simple method and Defragment your hard drives to increase the system performance.

Links : Microsoft’s Tutorial

Related Posts

{ 6 comments… read them below or add one }

1 Mathes October 28, 2009 at 1:13 PM

Jus go to command prompt… type “defrag/?” to know the details…

2 VISHAL October 29, 2009 at 2:18 AM

Hey Mathes,

Thanks for the tip :)

3 David December 18, 2009 at 6:30 AM

Defragmentation is really improtant when comes to the issue of computer maintainence. To defragment hard disk, I prefer to use third party defrag softwares as most of them are much faster and effective than the Windows bulid-in defragment. Here is another good article that may offer you more tips on the computer optimization: http://ezinearticles.com/?How-to-Speed-Up-Computer—6-Easy-Steps-to-Boost-PC-Performance&id=3258161

4 VISHAL December 20, 2009 at 3:21 AM

Thanks for the tip dude

5 suraj vibhute January 1, 2010 at 10:57 AM

Nice trick for advanced users, but I think Basic users can also try this because it is well explained here. I will recommend Auslogics Disk Defrag utility will is very faster than any other defragment utilities. And it is free of cost. ^_^

6 VISHAL January 7, 2010 at 3:21 AM

Thanks for your comment Suraj

Leave a Comment

CommentLuv badge