Defrag Command In Windows Server 2008

This article explain how to use Defrag command in Windows Server 2008 operating system and it's related syntax.
  • 2866


Defrag command is used to locate and develop the fragmented files on local volume to improve performance. It also used to reduce the amount of fragmentation and it also creates larger regions of free space using compaction to impede the return of fragmentation. Syntax for Defrag command in operating system is given below.


defrag <volumes> | /C | /E <volumes> [/H] [/M | [/U] [/V]]

defrag <volumes> | /C | /E <volumes> /A [/H] [/M | [/U] [/V]]

defrag <volumes> | /C | /E <volumes> /X [/H] [/M | [/U] [/V]]

defrag <volume> /T [/H] [/U] [/V]

Parameters For Defrag

Parameter Description
<volume> Defines the drive letter or mount point path of the volume to be defragmented or analyzed.
C Used to perform the operation on all volumes.
A Perform analysis on the specified volumes.
E Perform the operation on all volumes except those specified.
H Run the operation at normal priority.
M It runs the operation on each volume in parallel in the background.
T It tracks an operation already in progress on the specified volume.
U Used to 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.
? Shows help information.

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.