How To Add Defragment to the Right-Click Menu for a Drive

By 06/02/2012How To

Hello lovely people 🙂

In this installment of our computer repairs How To we will be talking about adding another item to the context menu for Defrag. YOu can do that with a simple registry hack. After downloading the hack (link at the bottom of this blog) you will have a new item on the right-click menu for your drives…

How To Add Defragment to the Right-Click Menu for a Drive 1

This will start up the command-line version of Disk Defragmenter (after accepting the UAC prompt)

How To Add Defragment to the Right-Click Menu for a Drive 2

Manual Registry Hack

Through the start menu search or run box open up regedit.exe and then browse down to the following key:

HKEY_CLASSES_ROOTDriveshell

How To Add Defragment to the Right-Click Menu for a Drive 3

You need to 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.

How To Add Defragment to the Right-Click Menu for a Drive 4

You’ll now 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

Also, you can choose from one of the other defrag switches here if you prefer.

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 Registry Hack (link)

I do hope you got that. If something is still unclear, drop us a line at Mobile Geeks and one of our computer repairs experts will be able to help.

Over and out

MobileGeekette

Call Now Button1300 883 021