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.
- Click start -> run and type Regedit, press enter. Navigate to the following registry key.
HKEY_CLASSES_ROOT\Drive\shell
- Create a new key called “diskcleanup” and set the default value to “Disk Cleanup”.
- Then create another key under it called “command” and set the value to the following.
cleanmgr.exe /d %1
- Close registry editor and restart the PC. Now right click on any drive you should see the option.
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
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.






#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