How To: Add Disk Cleanup Shortcut To The Right-Click Context Menu For A Hard Disk Drive

Over a period of time after using our PC it gathers a lot of junk file of no use in various temp folders. When we want to clean these files we have to go through Start Menu to Disk Clean up or opening up Drive Properties Window.Disk Cleanup Utility can easily determine which files on a hard drive may no longer be needed and delete those files. Use Windows Disk Cleanup utility to perform any of the following tasks to free up space on your hard disk: remove temporary Internet files, remove downloaded program files, empty the Recycle Bin, remove Windows temporary files, remove optional Windows components that you are not using, and remove installed programs that you no longer use. In addition to freeing up potentially significant amounts of hard drive space, using Disk Cleanup on a regular basis can significantly improve system performance.

Instead of going through all that, we can use a simple registry hack to add Disk Cleanup shortcut as a context menu item to the drive right-click menu.right-click-menu

HKEY_CLASSES_ROOT\Drive\shell

cleanmgr.exe /d %1

Note:Backup your full registry before making any change.

Using Disk Cleanup utility in Windows Vista or in XP,you will free from a substantial amount of unneeded files and also saves valuable hard disk space.You could stop here and not suffer any ill consequences, but there are a lot of gaps and empty spaces on the hard drive where the files were removed by the Windows Disk Cleanup utility.This would be an excellent time to run Windows Disk Defragmenter Utility to organize the hard drive into contiguous sections. The hard drive heads will spend less time seeking all the pieces of a file and you’ll see another performance boost.

Alternate Method:

Download, extract, and double-click on DiskCleanupDriveMenu.reg to merge the registry values into the Windows registry. You can use the included RemoveDiskCleanupDriveMenu.reg file to rollback the changes.

Disk Cleanup to the Right-Click Menu for a Drive

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

Popularity: 4%

Did You Like This Post? Then You Might Find These Also Interesting:

Written by Tony on January 27th, 2009 with 1 comment.
Read more articles on Windows Performance.

Related articles

1 comment

Read the comments left by other users below, or:

Get your own gravatar by visiting gravatar.com Ram Kumar
#1. July 24th, 2009, at 11:33 AM.

Dear All,

I am Using Windows XP Base Network.With WIN Server 2003.I Have to Create
Disk Cleanup shot court on Desktop in my all network.Is this possibale ?
Please mail me all step(step by step).

Thanks & Regards
Ram Kumar

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .