Jump to content
CCleaner Community Forums

Enhance Windows Disk Cleanup


ROCKNROLL

Recommended Posts

Hello.

 

So recently, I did a little research on the Windows built in Cleanup utility because I always wondered why Microsoft doesn't make it clean more on your system. Then I found an article on the internet that apparently lets you unlock even more advanced options for it, but there is no easy way to do it and requires you to consulate with the command line. I am pretty sure CCleaner probably already cleans most to all of these, but if anyone still wants to check it out, here is the article on how to do it: http://www.thewindowsclub.com/automate-disk-cleanup-utility-windows

 

Who knows, maybe disk cleanup actually cleans something that CCleaner doesn't and then we can add it to CCleaner (or Winapp2).

Link to post
Share on other sites
  • Moderators

after you save your choices with the /sageset:n switch, instead of running them as sagerun:n where it'll do them all regardless, you can use /tuneup:n and can make on-the-fly changes to your preset list.

 

I also found a site years ago that showed you how to add entries to the Registry to add your own custom folders to the CLEANMGR list, but can't seem to locate it now having just done a quick Google search.

Link to post
Share on other sites
  • Moderators

Years ago I removed the Temporary Files cleaner from within Disk Cleanup which is known on XP to go too far, I've seen it on multiple XP PCs where it can mess up Windows and once it forced me to reinstall XP.

 

What I'm referring to (Windows XP only):

 

Windows Registry Editor Version 5.00

; Removes Compress Old Files in Disk Cleanup. Removing this significantly speeds up Disk Cleanup!

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files]




Windows Registry Editor Version 5.00

; Removes Microsoft Office Setup Files in Disk Cleanup.

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Office Setup Files]




Windows Registry Editor Version 5.00

; Removes Temporary Files in Disk Cleanup. This should be considered a must do since there's
; a critical bug in Disk Cleanup that will delete much more than Temporary Files which will
; force severe problems in Windows possibly leading to the reinstallation of Windows. This
; critical bug surfaced after the Windows Updates from August 2008, or from Windows XP
; Service Pack 3.

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Files]

 

Link to post
Share on other sites

(What follows is a (more or less) blatant advertisement for a - IMO - excellent program)

 

The folks that have bought the PRO version of Tweaking's Windows Repair have the ability to add more locations to be cleaned by the build-in "Disk Clean Up" tool.

Link to post
Share on other sites

I also found a site years ago that showed you how to add entries to the Registry to add your own custom folders to the CLEANMGR list, but can't seem to locate it now having just done a quick Google search.

 

I know what you are talking about, but can't seem to find anything on it, either, or maybe we are thinking of something else.

 

So I decided to test this out, but I noticed nothing happened when I try to clean something with disk cleaner and using Cleanermgr /sageset:1. I can see all the extra cleaners, but none of them show me the size of clutter there is nor does it show a pop-up that shows Disk Cleanup is cleaning stuff, which it usually does. Is it just suppose to be working in the background or did I do something wrong?

Link to post
Share on other sites
  • Moderators

just in case you weren't aware, you have to do the /sageset:1 first, tick the things you want (yes it doesn't show how much space will be saved) and hit OK.

that simply saves your settings in 'slot 1' of the required registry key.

 

to use those saved settings, you use the switch /sagerun:1 and it'll run cleanmgr with your predefined options.

 

so you can do a sageset:1 and tick temp internet files and empty recycle bin, and maybe /sageset:2 and tick setup log files and temp setup files.

and you could run cleanmgr c: /sagerun:1 on end of months and /sagerun:2 on weekends, that sort of stuff.

Link to post
Share on other sites

just in case you weren't aware, you have to do the /sageset:1 first, tick the things you want (yes it doesn't show how much space will be saved) and hit OK.

that simply saves your settings in 'slot 1' of the required registry key.

 

to use those saved settings, you use the switch /sagerun:1 and it'll run cleanmgr with your predefined options.

 

so you can do a sageset:1 and tick temp internet files and empty recycle bin, and maybe /sageset:2 and tick setup log files and temp setup files.

and you could run cleanmgr c: /sagerun:1 on end of months and /sagerun:2 on weekends, that sort of stuff.

 

Ah alright. That would explain all the 1-255 integers mean.

Link to post
Share on other sites
  • Moderators

Honestly, I'd just use CCleaner! ;)

Exactly, and 99% of the time, it's all you need.

but cleanmgr does cover a couple of areas I haven't managed to INCLUDE into CC and cleanmgr does a much faster job of removing windows.old, $windows.~bt and $windows.~ws

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...