One of the easiest ways to keep your computer running smoothly is to defragment your hard drives on a regular basis. As with previous versions of Windows, Windows 7 includes a defragmenter tool called the Disk Defragmenter. However, the version included with Windows 7 lets you configure it from the command line.
You can defragment your hard drive from the command prompt by typing defrag. In addition, you have the following options:
- /r to defrag multiple drives simultaneously
- -a to perform a defrag analysis
- -v to print the report
- -r to treat files with at least 64 Mb of fragments like they are not fragmented
- -w to defrag everything