Win XP uses context menus to automate disk

  
                              


If you want to defragment your disk, the usual practice is to use the Disk Defragmentation command in the properties dialog of a drive. Now introduce a faster method, just click the right button on a drive, you can find the disk defragmentation command from the pop-up context menu, click the command, the disk is automatically defragmented.

This command needs to be added by ourselves. The following example is implemented in Windows XP. For those who like to play Windows, I believe I will like this DIY process. Before proceeding, you must first ensure that you are logged in to Windows XP as an administrator.

1. Open Notepad, enter the following, or copy the following directly into Notepad.

; context_defrag.INF

; Adds Defrag to the right click context menu in Windows XP

[version]
signature="$CHICAGO$"< Br>

[DefaultInstall]
AddReg=AddMe

[AddMe]

HKCR,"Drive\\Shell\\Defrag\\command",,,"DEFRAG.EXE % 1"

2. Save the file as "context_defrag.inf" and save it to the desktop. Note that you should select the file type as "All Files" instead of a text file when saving.

3. Right click on this file and select "Install".

4, open the Explorer or my computer, right click on a drive, you will find an extra "Defrag", click it will automatically run the disk that comes with Windows XP Defragmenter, but unlike the traditional method, this command is run in DOS mode.

dos mode

If you want to cancel defragmentation, you can press Ctrl + C keys.

If you don't like this method, you can also remove it. The method is to click "Start

Copyright © Windows knowledge All Rights Reserved