A Better Disk Cleanup

Topics Computer on November 15th, 2007

This tip will show you create an unattended which will also empty your prefetch folder. This tip assumes you have XP installed in c:\.

Step 1.
Create a new text file and place the following contents inside:

c:\\\cleanmgr.exe /dc /sageset: 1
c:
cd \
cd c:\\prefetch
del *.* /q

Step 2.
Save the file, changing the extension from .txt to .bat
For this tip’s purpose, we will call it clean.bat

Step 3.
Execute the file. This will run the program in a special mode which asks what items you will want cleaned when performs an unattended . Check the items you wish to have cleaned up, then click OK.

Step 4.
Right-click on the clean.bat file and click edit. Change the first line to read:

c:\\\cleanmgr.exe /dc /sagerun: 1

Step 5.
Save the file. You can execute this file in place of running , or, to have this program run unattended, run the Add Task Wizard in the Control Panel and create a task using the clean.bat file you just created.

Note: This script will also clear prefetch directory. Often this directory can become cluttered with old appication and a cleaning would free up space but it will result in a one time decrease and has to rebuild the cache with active software afterwards.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • StumbleUpon
  • Facebook
  • Google
  • Furl
  • Live
  • MisterWong.DE
  • NewsVine
  • Reddit
  • Slashdot
  • Technorati
  • YahooMyWeb
  • BlinkList
  • description
  • Fark
  • Netvouz
  • Spurl
  • MisterWong
  • Webnews.de
  • E-mail this story to a friend!

Tags:, , , , , , , , , , , ,

Related posts

One Response to “A Better Disk Cleanup”

  1. Comment by StumbleUpon » Your page is now on StumbleUpon!

    [...] Your page is on StumbleUpon [...]

Leave a Reply