"Disk Cleanup" is a very useful tool in Windows which removes temporary files and a variety of system files and other items that you no longer need. It helps in freeing up disk space.
You can access it using Drive Properties or All Programs menu. Wouldn't it be great if you can launch it directly by right-click on a drive?
In this tutorial, we'll tell you how to add "Disk Cleanup" option in Drive context menu so that you can launch it quickly and easily.

Simply follow these simple steps:
1. Type regedit in RUN or startmenu search box and press Enter. It'll open Registry Editor.
2. Now go to following key:
HKEY_CLASSES_ROOT\Drive\shell
3. Under "shell" key, create a new key Disk cleanup
4. If you want to show an icon for context menu option, select "Disk cleanup" key and in right-side pane, create a new String icon and set its value to cleanmgr.exe
PS: You can also change its position in context menu using position String. Check this topic for more information.
5. Now create another new key under Disk cleanup key and give it name command
6. Select command key and in right-side pane, change value of default to cleanmgr.exe /d %1

That's it. Now you can access the option in drive context menu.
PS: If you want a ready-made registry script to do the task automatically, simply download following ZIP file, extract it and run the extracted REG file. It'll ask for confirmation, accept it:
This article was posted by VG in following section: Windows 7, Windows Vista, Windows XP.
If you enjoyed this article, subscribe to our RSS feed or free newsletter to get all new articles directly in your Inbox. Also check out our popular articles and archive to read other interesting articles.
MrHungLe
Great tut! Thanks Askvg!
IT Geek 2011
Easy and simple!
Kyle
YES!!!!!!!!!! THANK YOU VISH!!!!!
Uewd
Thank you. Could we add "Defragment" option in drive context menu?
Masroor Aijaz
^^ As suggested by Uewd. Defragment option will be useful very much like this one.
Anway VG! Thanks for this. Very handy in many ways.
VG
Your wish my command: ;)
http://www.askvg.com/how-to-add-defragment-option-in-drive-context-menu-in-windows-xp-vista-and-7/
benfica111
Fantastic !!!
Eugeny
SUPER!!!THANK YOU...
ItsMikeROFL
I think I did it right. How can I go about adding the icon to the context menu?
Jim Nasium
I have not failed to find an answer to any issue I sought info or help on. I have your RSS as well. Great assistance, always. JN