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.
- Click start -> run and type Regedit, press enter. Navigate to the following registry key.
- 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.
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.