http://www.csnserver.com
Click here for Low cost website hosting!

IP Address Lookup
IP Address

Microsoft Windows Tips And Tricks!



Welcome!

Add Defrag To Thr Right Click Menu For A Drive In Windows Vista, 7 And 8



Want Defrag on the context menu for a drive? There have been many users that wanted Defrag as a option. With a simple registry hack we can do just that. So after manually applying or downloading a registry hack, you’ll have a new item on the right-click menu for your drives.

Drive Right Click Menu With defrag Option

This will start up the command-line version of Disk Defragmenter.

Dos Version Of Defrag Completed

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\shell

Registry Hack Picture 1

Create a new key under shell called 'runas', and then set the (Default) value to 'Defrag Drive'. If you want to hide this menu item behind the Shift key right-click menu, then add a new string under Defrag Drive called Extended with no value.

Registry Hack Picture 2

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 and progress.
defrag %1 -v -u
You can alternately choose from one of the other defrag switches here if you’d like.
Now close regedit, your right click option will now work

Downloadable Registry Hack
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.
Download AddDefragToDriveMenu here.

Thanks for visiting mswintips.com.

Return to Index Page


Valid HTML 4.01 Transitional
Copyright ©2018 CSN All Rights Reserved