Disk Clean up is a utility that helps us in cleaning unwanted items on a disk or hard drive volume. Now we shall see how to add this utility to the right click menu when we right on a particular drive in windows 7.
We need to edit the registry to enable this. The steps for editing the registry and getting the Disk Clean up utility in the right click menu for disk partitions are as follows:
Open the registry key HKEY_CLASSES_ROOT\Drive\Shell
Create a key under cmd by right clicking on it and click on New>key and name it as Diskcleanup
Right click on that and again create a key and name it as command
Change the data value on the right side to cleanmgr.exe /d %1
Now you can see the clean up utility in the right click menu for every drive.