Add Defragment to context menu for a drive
Disk Fragmentation occurs naturally when you use a hard disk drive frequently and is important especially for users who install lots of programs or perform lots of read and write operations on their hard drives.Read operations waste more time because all the bits that make the file are not in one place but scattered around the complete hard drive. Defragmenting the drive moves them closer to each other to speed up loading times. Here is a simple trick to add Defragment to the right click context menu of a drive:
Go to Start and run regedit,exe and locate this Key:
Quote:
HKEY_CLASSES_ROOT\Drive\shell
Once you reach to shell, create a new key named runas with the default value to Defragment.
Now right-click on defragnow and create a new subkey called command.
Double-Click the Default entry on the left side again and enter the following value: defrag.exe %1 -v
You can alternately choose from one of the other defrag switches here if you'd like.That is it. Close the registry and get back to desktop.Now test it by right clicking a drive defrag option appears or not. If it is there,click on it, and see a new window should appear and the defragmentation should automatically start.
Re: Add Defragment to context menu for a drive
Remember while browsing the Key key HKEY_CLASSES_ROOT\Drive\shell, If the shell key is missing create it by right-clicking on Drive and selecting NEW, KEY and enter the name shell. Create a subkey the same way naming it defragnow and follo wthe rest of the steps.
Re: Add Defragment to context menu for a drive
you can either add Defragment to context menu by merging this file to the registry values into the Windows registry.Just Download, extract, and double-click on it.