Windows Tip: Start Your Day With A Fresh Computer, Step One: Setup And Update Windows Tip: Start Your Day With A Fresh Computer, Step Three: Automate Hard Drive Defragmentation

Windows Tip: Start Your Day With A Fresh Computer, Step Two: Automate Hard Drive Cleaning

Written by Saman Sadeghi on September 11, 2007 Add comments

I’ve actually posted this tip before, if you’d like to read all of the details, view: Windows Tip: Automate Hard Drive Cleaning. In this version, I’ll also show you how to schedule this as a task.

Table Of Contents

This is the Second Step in the Fresh Computer Series.

Setup Automatic Hard Drive Cleaning

Download the two files below and save them to you Clean Machine folder (C:\Program Files\Clean Machine), just remember to save them file with a .bat extension. Also, if you’d like to make sure that there isn’t any malicious code (which I suggest, it’s your system – don’t trust anyone!), right-click the downloaded file and click Edit (or open them in Notepad).

Downloads

Run the “Automate Hard Drive Cleaning - Config” file. It will run Window’s Disk Cleanup utility and let you select what you want to delete. Whatever you choose here will be remembered every time you run the file (You can change these settings later if you choose by rerunning the Config file). I select everything except for the Recycle Bin. This way, if I need to recover a document, I still can.
Disk Cleanup Properties

Schedule The Task

  1. Navigate to: Control Panel -> Scheduled Tasks -> Add Scheduled Task
    (Alternately, you run this from the Run dialog: control schedtasks)
    Control Panel -> Scheduled Tasks -> Add Scheduled Task
  2. Hit Next in the dialog box that opens.
  3. In the Scheduled Task Wizard, navigate to the Automate Hard Drive Cleaning batch file:
    c:\Program Files\Clean Machine\Automate Hard Drive Cleaning.bat
  4. Click Next. Set this task to run Daily.
    Set The Task To Run Daily
  5. Click Next. Enter the time and date for the task. Set the Start time for 4:00 AM and Perform the task Every Day.
    Set The Time For The Task To Run
  6. In the next screen, enter in the username and the password for your Windows user account [1].
    Set Your Username And Password
  7. Hit Finish and you’re done!
    The Setup For The Scheduled Task Is Complete

[1] This user needs to be a System Administrator.

Next, we can proceed to Fresh Computer Series Step Three: Automate Hard Drive Defragmentation.

Start Slide Show with PicLens Lite PicLens
This post is filed in: Technology, Windows Tips And Tricks and has been viewed 2,216 views times.

Windows Tip: Start Your Day With A Fresh Computer, Step One: Setup And Update Windows Tip: Start Your Day With A Fresh Computer, Step Three: Automate Hard Drive Defragmentation

Sub Zero Reads These Related Posts:


Sub Zero
  • Windows Tip: Start Your Day With A Fresh Computer, Conclusion
  • Windows Tip: Start Your Day With A Fresh Computer, Step One: Setup And Update
  • Windows Tip: Start Your Day With A Fresh Computer, Step Three: Automate Hard Drive Defragmentation
  • Windows Tip: Start Your Day With A Fresh Computer, Step Five-B: Open Your Browser (Internet Explorer)
  • Windows Tip: Start Your Day With A Fresh Computer, Step Five-A: Open Your Browser (Firefox)


  • RSS feed | Trackback URI

    13 Comments »

    Comment by Tech Bold 2007-09-11 08:46:04

    MyAvatars 0.2

    Those are some really good tips! Now I don’t have to clean up the system every week. :mrgreen:

    Comment by Everyday Weekender 2007-09-11 18:17:53

    MyAvatars 0.2

    yeah, but are you going to actually do it :)

    Comment by Saman Sadeghi 2007-09-12 09:42:18

    MyAvatars 0.2

    Yeah, that really is the key to the series - you can set up the computer to manage all of these cleanup chores for you - but you do have to set it up first!

     
     
     
    Comment by digitalnomad 2007-09-13 10:10:17

    MyAvatars 0.2

    Very good, but I suggest the free stuff. Crap Cleaner is good and highly rated. ccleaner dot com.

    Down with MS.

     
    Comment by Christopher 2007-09-13 12:57:47

    MyAvatars 0.2

    I’m going to give Crap Cleaner a try purely because it’s called Crap Cleaner. :mrgreen:

     
    MyAvatars 0.2

    [...] Google X Cosplay: Transformers Costumes That Actually Transform! Windows Tip: Start Your Day With A Fresh Computer, Step Two: Automate Hard Drive Cleaning [...]

     
     
     
     
    MyAvatars 0.2

    [...] X Windows Tip: Start Your Day With A Fresh Computer, Step Two: Automate Hard Drive Cleaning Windows Tip: Start Your Day With A Fresh Computer, Step Four: Automate A [...]

     
    Comment by RonCam 2007-11-08 03:10:15

    MyAvatars 0.2

    I have a TEMP file in a different location, different drive, that is ignored by Windows Disk Cleanup. This could be added (http://snipurl.com/1tbm3) with this Registry edit, but these directions are confusing. :???:
    I think the Windows98 example may work for Windows2000, but not sure. Can the parameters they give here can be used universally, or if they are specific to the few examples given, there is no clue. Will the folder cleanup option appear only when the correct drive is selected, or does that need one of the parameters they don’t explain?
    Could you do a better job of explaining it, so we can make Disk Cleanup point to whatever TEMP directories we want?
    :smile: Thanks :!:

    Comment by Saman Sadeghi 2007-11-08 21:03:15

    MyAvatars 0.2

    A “better job”? I thought this was clear enough….

    These tips are for XP & Vista. For Windows 98, you’ll have to keep looking, I don’t have that OS installed anywhere so I can’t even test it for you!

    Comment by RonCam 2007-11-09 07:03:54

    MyAvatars 0.2

    :oops: Sorry, wasn’t talking about your explanations being unclear! They are just fine!
    The reference was to the explanation in the link I gave, where they gave several XP examples, and for some reason, tossed in one Win98 example.Your posts do a fine job of automating Windows’ Disk Cleanup tool. However, the point of the discussion (at the link I gave) was that the tool’s default cleanup locations miss some folders, and so leave some/lots of “junk” on the disc. I think this would be a problem whether or not it runs automatically?I just saw that at the bottom (of the linked page) there is one good example for XP, for what I want to do. However, some of the Registry commands they use throughout the thread could use better explanation … given your interest in showing people how to use the Disc Cleanup tool, thought you might have some comments.

     
     
     

    Leave a Reply

    Name (required)
    E-mail (required - never shown publicly)
    URI
    Your Comment (smaller size | larger size)
    You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.
    Windows Tip: Start Your Day With A Fresh Computer, Step One: Setup And Update Windows Tip: Start Your Day With A Fresh Computer, Step Three: Automate Hard Drive Defragmentation