Disk defragmenter command line

by admin on September 21, 2010

Windows provides a command line utility ‘defrag‘ to defragment disks.  The usage of this command is explained below with examples.

To run defragmentation on a drive we need to run the below command.

defrag drivename

For example, to defragment C: drive the command we should run is defrag C:

To just analyze the gains of defragmentation without actually performing defragmentation, we need to add -a switch.

For example to do defragmentation analysis for C: drive we need to run the below command.

defrag -a C:

{ 1 comment… read it below or add one }

Anonymous September 28, 2010 at 5:18 pm

I liked the GUI of the XP defrag tool. Atleast it gave a clear picture of the defrag progress and task completed etc. I think the later versions lack as good an interface and though they are supposed to be 'automatic', its far from a completely automatic background defrag.

Reply

Leave a Comment

HTML tags are not allowed.

Previous post:

Next post: