Right-click Defrag for Windows 7

By | 2010-03-16

Do you really want to quickly defragment your drive?, Instead of going through Start menu, programs and etc., use a simple tweak that adds Defrag to the context menu for each hard drive partition.

  1. Open up regedit.exe through the start menu search or run box, and then navigate to the following key:
    HKEY_CLASSES_ROOT\Drive\shell
  2. 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.
  3. After this, 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
Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.