Table of Contents
How To Analyze and Defragment a Disk in Windows XP
Analyze a Disk Volume
Because defragmenting a disk volume can take a long time (depending on the size of the volume, the number of files, the percentage of fragmentation, and the availability of system resources), you should analyze volumes before defragmenting them to decide whether or not it is worthwhile to take the time to run the defragmentation process.
To check for fragmented files and folders on a volume:
- Click Start, point to All Programs, point to Accessories, point to System Tools, and then click Disk Defragmenter.
- Click the volume that you want to analyze.
- Click Analyze to begin the analysis.
- Review the results of the analysis after it is complete by clicking View Report. If the analysis tool recommends that the volume be defragmented, follow the steps in the next section.
Defragment a Disk Volume
- If the Disk Defragmenter tool is not already running, click Start, point to All Programs, point to Accessories, point to System Tools, and then click Disk Defragmenter.
- Click the volume that you want to defragment.
- Click Defragment to begin the operation.
- Review the progress of the operation in the Defragmentation Display window. Fragmented files on the disk appear in red, contiguous files are blue, and system files are green. The goal is to eliminate most of the red in the window. 
How To Analyze and Defragment a Disk in Windows Vista
Vista runs defrag and many other utilities automatically, so there is no more worrying about having to run defrag as part of your maintenance schedule. To view the scheduled tasks in a default installation of Windows Vista, click the Start button. In the Start Search box, type task scheduler. Then, in the Programs list, click Task Scheduler.
How do I run defrag manually?
This way will give you the old degrag screen you where used to in XP
- Run the Command Prompt.
Note: Don't forget to right-click the shortcut and click "Run as administrator"
- Type the following in the command line: defrag c: -a
- Press Enter and in a few moments it's display the Percent file fragmentation
Another way to defrag in Vista Manually
- Open Computer > Right click on the driver you want to defrag > Select Properties > Select the Tools Tab > Select Defragment Now > (If it asks for Admin username and password type in a select enter) > Select Defragment Now
The auto-scheduling of the extremely important Disk Defragmenter tool has made Vista easier to manage over the long term especially for users who didn't know they had to regularly run defrag on MS XP
1. ^ MS Knowledge Base - Retrieved 26 March 2008
All text is available under the terms of the GNU Free Documentation License