How to Add Disk Cleanup to the Right-Click Menu for a Drive

Using the Hack

After installation, you can simply right-click on a drive and choose “Disk Cleanup” from the menu:

image

If you are using Windows 7 or Vista, you’ll be asked whether you want to clean up your files or all files…

image

And then disk cleanup will begin:

image 

Manual Registry Hack

Open up regedit through the start menu search or run box, and then browse down to the following key:

HKEY_CLASSES_ROOT\Drive\shell

image

Create a new key called “diskcleanup” and set the default value to “Disk Cleanup”. Then create another key underneath it called “command” and set the value to the following:

cleanmgr.exe /d %1

The change should be immediate, just right-click on the drive and you should see the new menu item.

Downloadable Registry Hack

Simply download, extract, and double-click on DiskCleanupDriveMenu.reg to enter the information into the registry. You can use the included RemoveDiskCleanupDriveMenu.reg file to reverse the changes.

Download DiskCleanupDriveMenu Registry Hack

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)