Normally when you want to access the Disk Cleanup tool, you usually have to either find it through the start menu, or open up the drive properties window. Instead of going through all that, we can use a simple registry hack to add a menu item to the drive right-click menu.
If you are using Windows Vista, you'll be asked whether you want to clean up your files or all files…
And then disk cleanup will begin:
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
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.
0 comments
Post a Comment