PDA

View Full Version : Add Defragment to a Drives Right-Click Menu


harimaurya
10-08-2008, 06:50 PM
Direct from HowToGeek (http://www.howtogeek.com/howto/windows-vista/add-defragment-to-the-right-click-menu-for-a-drive/) comes instructions on adding a simple registry tweak that will allow you to add “Defragment” to the context menu on any drive when you right click it.
After manually applying or downloading the hack, you’ll have a new item on the right-click menu for your drives…
http://3.bp.blogspot.com/_jPL698HIkao/SJ7g0UVpN-I/AAAAAAAAAQg/W9XAucE4nxw/s320/image106.png (http://3.bp.blogspot.com/_jPL698HIkao/SJ7g0UVpN-I/AAAAAAAAAQg/W9XAucE4nxw/s1600-h/image106.png)
Which will start up the command-line version of Disk Defragmenter (after accepting the UAC prompt)http://2.bp.blogspot.com/_jPL698HIkao/SJ7hCcDEPyI/AAAAAAAAAQo/oTwGxnBXhIU/s320/image107.png (http://2.bp.blogspot.com/_jPL698HIkao/SJ7hCcDEPyI/AAAAAAAAAQo/oTwGxnBXhIU/s1600-h/image107.png)
Manual Registry Hack
Open up regedit.exe through the start menu search or run box, and then browse down to the following key:
HKEY_CLASSES_ROOT\Drive\shellhttp://3.bp.blogspot.com/_jPL698HIkao/SJ7hpDCaXyI/AAAAAAAAAQw/0v5CAAouZpM/s320/image108.png (http://3.bp.blogspot.com/_jPL698HIkao/SJ7hpDCaXyI/AAAAAAAAAQw/0v5CAAouZpM/s1600-h/image108.png)Create a new key under shell called “runas”, and then set the (Default) value to “Defragment”. If you want to hide this menu item behind the Shift key right-click menu, then add a new string called Extended with no value.
http://4.bp.blogspot.com/_jPL698HIkao/SJ7h5cDCAMI/AAAAAAAAAQ4/kRyRkVHWpmA/s320/image109.png (http://4.bp.blogspot.com/_jPL698HIkao/SJ7h5cDCAMI/AAAAAAAAAQ4/kRyRkVHWpmA/s1600-h/image109.png)
Next, you’ll need to create a key called “command” and set the default value to the following, which is the command to run defrag with the default options but show verbose output.
defrag %1 -v


You can alternately choose from one of the other defrag switches here if you’d like.
Downloadable Registry Hack
HowToGeek provides a downloadable registry (http://www.howtogeek.com/geekers/AddDefragToDriveMenu.zip) hack to do all of this for you. Simply download, extract, and double-click on either AddDefragToDriveMenu.reg (for the regular menu) or AddDefragToExtendedDriveMenu.reg (to hide behind the Shift key). There’s also an included removal script that will remove either one.

Dishant
18-08-2008, 11:59 PM
thanks for this tip hari......lets rock here

BBThumbHealer
19-08-2008, 02:23 PM
Thnx for sharing !

casanova
19-08-2008, 10:26 PM
Nice tip though I won't be using it (have downloaded the reg file thought). I don't defragment my HDD (my HDD is well organised). :D

ThinkFree
19-08-2008, 10:27 PM
Thanks