Automatically Defrag





Introduction: Automatically Defrag

Defragmenting a hard drive is important to the stability and speed of a computer, but it takes a long time to do and you have to remember to do it. You can buy programs to do it for you, but why pay for it when Windows XP will do it for you for free?

Step 1: Go to Scheduled Tasks

First, you need to go to Start>All Programs>Accessories>System Tools>Scheduled Tasks

Step 2: Add a Task

Next, double click on "Add Scheduled Task."

Step 3: Whatever You Want

Then, click "Next" and click on whatever program you want. It isn't important what you choose because we will have to change it later. Click next and enter the title, time, day and frequency of this task. Then it will ask for your password, I read somewhere that you need a windows password for this to work but I'm not sure if this is true.

Step 4: Almost Done

After you have entered your password and clicked next it will say "You have successfully scheduled the following..." On this screen make sure you check the checkbox that says "Open advanced properties for this task when I click Finish." Then click "Finish."

Step 5: Last Step

Finally, change the "Run:" textbox to say "defrag c:" and click "OK." Now when it runs the task it will run "defrag c:" and it will defrag your C drive.

Step 6: Comments

This is my first instructable so please be kind with your comments, but also please be constructive. Thanks!



    • Clocks Contest

      Clocks Contest
    • Oil Contest

      Oil Contest
    • Planter Challenge

      Planter Challenge

    We have a be nice policy.
    Please be positive and constructive.




    I didn't know you could do that. Awesome!! Saves me having to do it.

    Actually, I also automatically defrag my ant farm too.

    1 reply

    lol that was good

    I love this friend never heard of this untill today when i said he needed to do this...this would be perfect for him

    How is that clear? How is it pointless? I only knew to defrag my computer a few years ago, but I've been using computers since I was 10 or so(I'm 18 now). It's really not that common of knowledge. How is that clear? It's simple to begin with, and so far as i can tell, he didn't make a mistake anywhere. You sir, suck.

    Yes, very good Instructable, good use of graphics to highlight and assist the reviewer. However I will disagree with you on a certain point. Where I agree Defrag is an important tool, it is obvious from your screenshot in the introduction that your root drive didn't really need defragging ( but I understand that is was for an example so not to worry) My work laptop has data flowing on and off it as I do a lot of SQL work and I very rarely defrag it, possibly every two months, if that. Modern Operating Systems are very forgiving and we have massive file systems and RAM. About 16 years ago we were using 4 Mb of RAM and 100Mb hard drives, that was when defragging was important. Having said that, I suggest that you do this scheduled task while you are away, possibly at night so it does take up system resources and your time. Good luck, keep 'em coming

    3 replies

    Yeah, I don't defrag much, maybe once or twice a year, but that's only after I defraged my drives in the first place. (I have used drives from other people's computers that I take off the street, unfortunately only 42 gigs worth.) Apparently, not many people know what defragging is (excluding most of us here on instructables) So yeah, It's pretty important.

    I haven't defraged in about 5 years. thats when I dumped windows for linux which uses intelegent filesystems that don't get fragmented in the first place. :)

    Wait another 16 years. In retrospect, today's "massive" will seem as quaint as 4mb of RAM.

    A couple of things 1 - defraging is VERY important to PC performance. 2 - Operation Visine - get the red out. If you see red, then defrag. 3 - start+run+defrag c: -f is much simpler way defraging the HD. 4 - defrag c: -f is much easier to schedule.


    How to automatically defrag: 1. Buy a Mac. 2. Nothing.


    Much more easy:

    Use JKDefrag, it has a "screensaver version", so it keeps your disks defragmented

    Get it here

    Free (released under the GNU General Public License) disk defragment and optimize utility for Windows 2000/2003/XP/Vista/X64. Completely automatic and very easy to use, fast, low overhead, with two optimization strategies, and can handle floppies and USB disks/sticks. Included are a Windows version, a commandline version (for scheduling by the task scheduler or for use from administrator scripts), a screensaver version, a DLL library (for use from programming languages), and versions for Windows X64.

    Hey Imnop! What window xp theme you running?

    1 reply

    defrag take too much time...what if the hard disc is huge say 1 terabyte? is there any better tool?

    1 reply

    That is what is good about this method, as Jezza Bear pointed out you can set the task to run at night or sometime when you are not using your computer.

    Very useful! What exactly are unmovable files though. They seem to be quite movable. And... How did you change the window color? The WMCenter standard is blue, and yours is black.