Howdy and welcome back to The Weekly Geek!
This week we are going to cover how to automatically have your system run the Defragmentation program that comes with Windows.
In previous versions of Windows, the task scheduler would open and run Disk Defragmenter. But in Windows XP, it simply opens Disk Defragmenter’s window. It does not actually start the utility. However, there is a way to make the program run in a DOS window:
- Click “Start | All Programs | Accessories | System Tools | Schedule Tasks”. Double click “Add Scheduled Task”.
- Click “Next” then select “Browse”. Navigate to “Windows | System32”. Click on “Defrag.exe | Open”.
- In the Schedule Task Wizard, click “Monthly”.
- Click “Next” then select the time and day.
- Click “Next”. Enter your Windows password twice and click “Next”.
- Check the box marked “Open advanced properties for this task then I click Finish”.
- Click “Finish” in the Run box, you will find the path to the defrag.exe file. At the end of this string, add a space and “c:” (without the quote marks).
- Click “Apply”. If you are asked for your password again, enter it then select “OK” then “OK” again.
The program will now run on the schedule you set. But it will run in a Command/DOS window (a black background with white text). It first analyzes the disk and reports on fragmentation. It then defragments the disk. It does not say that it is defragmenting, but you will see that the hard drive light is on. You’ll know when it quits defragmenting; the DOS window disappears. Continue reading