< Browse > Home / Windows Tips / Blog article: How to Defragment Hard Drives From The Command Prompt

How to Defragment Hard Drives From The Command Prompt

October 23rd, 2009 | 6 Comments | Posted in Windows Tips

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

Leave a Reply 425 views, 1 so far today |
Follow Discussion

6 Responses to “How to Defragment Hard Drives From The Command Prompt”

  1. Mathes Says:

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

  2. VISHAL Says:

    Hey Mathes,

    Thanks for the tip :)

  3. David Says:

    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 Says:

    Thanks for the tip dude

  5. suraj vibhute Says:

    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 Says:

    Thanks for your comment Suraj

Leave a Reply

CommentLuv Enabled