Schedule Disk Defrags

As part of standard system maintenance, it is best to occasionally run disk defragmenters to optimize how your files are organized. Of course, depending on the size of your hard drive and the level of fragmentation, this process can last hours. With this in mind, why not set up a scheduled task to have Windows do it for you using a frequency and time you specify.

Here is how to set it up (on Windows XP or better):

1. Open Notepad
2. Enter this line: "defrag c:" (without the quotes)
3. Optionally add more disks you want to defrag in the task (i.e. defrag d:, defrag e:), each on a new line.
4. Save the file as: defrag.bat
5. Close Notepad
6. Open Task Scheduler from your Windows Control Panel
7. Create a task called Defrag Hard Drives, set the schedule you want it to run, and point it to the defrag.bat file created above.

Now your disks will be defragmented without you having to think about it. One less system maintenance task you need to run manually!

Free eBook!

Like what you read?

If so, please join over 28,000 people who receive our exclusive weekly newsletter and computer tips, and get FREE COPIES of 5 eBooks we created, as our gift to you for subscribing. Just enter your name and email below:

Post A Comment Using Facebook

What’s Your Preference?

Daily Alerts

Each day we send out a quick email to thousands of PCMECH readers to notify them of new posts. This email is just a short, plain email with titles and links to our latest posts. You can unsubscribe from this service at any time.

You can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Newsletter

Running for over 6 years, the PCMECH weekly newsletter helps you keep tabs on the world of tech. Each issue includes news bits, an article, an exclusive rant as well as a download of the week. This newsletter is subscribed to by over 28,000 readers (many who also subscribe to the other option) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter: