Home > Computers and Internet, Tutorial, Windows > How to Add Defrag Command in Windows XP Context Menu

How to Add Defrag Command in Windows XP Context Menu

by Shivaranjan on December 6, 2006

ADVERTISEMENTS

In this tutorial we are going to see how defrag command can be added to Windows XP context menu to launch the command line version of Windows XPs built in defragmenter utility.

Step 1: Open Notepad. Notepad can be opened by Start>Run>type “Notepad”

Step 2: Now copy and paste the following code which is given below

; 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″

Step 3: Save the file by setting Save As type to All Files and not the default text document setting with the file name context_defrag.INF Refer to the screenshot given below. (Click on the image to enlarge)

Step 4: Now right click the file that you just created and click install. Refer to the screen shot given below.

Step 5: Now go and right click your computer’s hard drive and you can see the defrag command listed in the context menu. Refer to the screen shot given below.

Step 6: Now if you click that you can see the windows command line version of defrag.exe in action. :)

Found via Carol’s Vault

Did you enjoy this article? Please subscribe to RSS Feed to receive all the updates!

Related Posts:

  • No related posts found

Leave a Comment

Previous post:

Next post: