Using the Windows interface
1. | Open Disk Defragmenter |
2. | Click the volume that you want to check for fragmented files and folders, and then click Analyze. When Disk Defragmenter finishes analyzing the volume, it displays its analysis of the volume in the Analysis display. It also displays a dialog box that tells you whether you need to defragment the volume. |
3. | Click View Report to view the analysis report, which displays more detailed volume information and a list of the most fragmented files. |
Note
| • | To open Disk Defragmenter, click Start, point to All Programs, point to Accessories, point to System Tools, and then click Disk Defragmenter. |
| • | You must be logged on as an administrator or a member of the Administrators group in order to complete this procedure. If your computer is connected to a network, network policy settings may also prevent you from completing this procedure. |
Using a command line
1. | Open Command Prompt | ||||||||
2. | Type defrag volume [/a] [/v]
|
Note
| • | To open command prompt, click Start, point to All Programs, point to Accessories, and then click Command Prompt. |
| • | To view the complete syntax for this command, type defrag /? |
| • | While defrag is analyzing and defragmenting a volume, it displays a blinking cursor. When defrag is finished analyzing and defragmenting the volume, it displays the analysis report, the defragmentation report, or both reports, and then exits to the command prompt. |
| • | By default, defrag displays a summary of both the analysis and defragmentation reports if you do not specify the /a or /v parameters. |
| • | You can send the reports to a text file by typing >filename.txt, where filename.txt is a file name you specify. For example: defrag volume /v >filename.txt |
| • | Running the defrag command and Disk Defragmenter are mutually exclusive. If you are using Disk Defragmenter to defragment a volume and you run the defrag command at a command prompt, the defrag command fails. Conversely, if you run the defrag command, and open Disk Defragmenter, the defragmentation options in Disk Defragmenter are unavailable. |
| • | |
| • | |
| • |