XP: Automatically defrag drives with a new context menu item

Home -> Windows

7751 views

From the computer of: mikejc (41 recipes)
Created: Aug 24, 2004


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

Create a new Registry import file named context_defrag.inf in Notepad (be sure to save with it with the Save as type set to All Files and not Text Documents) and place the following text inside:

    ; context_defrag.INF
    ; Adds Defrag to the right click context menu in Windows XP
    [version]
    signature="$CHICAGO$"
    [DefaultInstall]
    AddReg=AddMe
    [AddMe]
    HKCR,"Drive\Shell\Defrag\command",,,"DEFRAG.EXE %1"

Then, right-click and choose Install. This will add a context menu to XP that allows you to automatically defrag drives, using the command line version of the built-in defragmentation utility. To use it, navigate to a drive in My Computer, right-click, and choose Defrag. A command line window will appear, and that drive will be defragged. When it's complete, the window just disappears.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  XP: Scheduled Defrag
  Vista: Defrag (Defragment) Drive
  Automatic Defrag Disable and Enable in Vista
  7-Zip: Remove Items from the Explorer Context (Right-Click) Menu
  XP: After installation of Steganos Security Suite, the Context Menu is Slow
  WinRar: Remove Items from the Explorer Context (Right-Click) Menu
  Fdisk Tutorial: Removing and Creating Partitions
  Remove NVIDIA Display from Context (Right-Click) Menu on the Desktop
  Speed Up Vista Upgrade in 4 Steps
  How to add menu items under right-click or context menu

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.