Defragmenting Volumes by Using the Defrag Command
The Disk Defragmenter command-line tool and the Disk Defragmenter snap-in both defragment volumes by using the same method. However, the command-line tool differs from the snap-in in the following ways:
a.. The command does not provide a graphical analysis of a volume's fragmentation status, but it does provide a summary.
b.. The command does not provide a status indicator.
To see a list of parameters for Defrag.exe, at the command prompt, type:
defrag /?To defragment a volume, specify the drive letter. For example, to defragment the C volume, type:
defrag c:To defragment the C volume and view a detailed report that is similar to the report shown in the Disk Management snap-in, type:
defrag c -vTo analyze the C volume and view a detailed analysis report, type:
defrag c: -a -vWhile the command-line Disk Defragmenter is analyzing and defragmenting a volume, it displays a blinking cursor. When Disk Defragmenter finishes analyzing a volume, it displays the analysis report. When Disk Defragmenter finishes defragmenting a volume, it displays the defragmentation report. After the process completes, Disk Defragmenter exits to the command prompt.
To interrupt the defragmentation process, at the command line, press CTRL+C.
For more information about using Defrag.exe, see Windows XP Professional Help.
http://www.microsoft.com/resources/...windows/xp/all/reskit/en-us/prkd_tro_ldtg.asp
--
~~~~~~
Hope this helps.
Gerry
~~~~~~~~~~~~~~~~~~~~~~~~
FCA
Stourport, Worcs, England
Enquire, plan and execute.
~~~~~~~~~~~~~~~~~~~~~~~~
Please tell the newsgroup how any
suggested solution worked for you.
~~~~~~~~~~~~~~~~~~~~~~~~