Monday, December 17, 2007

Schedule Defragment in Windows XP

I found a way to schedule a defragment in Windows

1. Go to Start -> Control Panel -> Scheduled Tasks -> Add Scheduled Task

2. Click "Next" in the Scheduled Task Wizard

3. Browse in C:/Windows/system32 and find defrag.exe, select it and click "Open"

4. Rename the task to your liking, example: Defragment C drive, then select how often you want to defrag, then click "Next"

5. Select the time and days (if you select weekly) then click "Next".

6. Enter a password for the username that is going to run the defrag then click "Next".

7. Click "Open advanced properties for this task when I click Finish" then click "Finish"

8. In the next window under "Run:" add a space then the drive letter to be defragmented then a colon, like this: "C:\WINDOWS\system32\defrag.exe C:"

9. Deselect "Run only if logged in" if you want it to run no matter who is logged in, then click OK.

10. It will ask for the user password again to confirm the changes.

11. To test it out, right-click on your scheduled defragment and click run. A command prompt window should come up with the drive fragment information while the defragment is running. After it is done it will go away, and you're done!