Each time we fragment the hard disk, we must first open the "Start> All Programs> accessories> System Tools" branch, and then run the "disk fragment program" under the branch ", this completes the hard disk fragmentation operation. This operation process is really troublesome. If we can add the hard disk fragment function to the right-click menu, it will be much easier to organize the hard disk fragment later. Open notepad and enter the following content:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDriveshell
Runas]
@ = "Disk fragmentation"
[HKEY_CLASSES_ROOTDriveshell
Runascommand]
@ = "Defrag % 1-v"
After entering the above content, save the notepad file as a registry file with the REG extension (for example, "disk organization. reg") and double-click it to import it to the Registry.
Right-click operation is more convenient
When we open the "computer" window and right-click any hard drive letter in the window, a menu item named "disk fragmentation" appears in the context menu, by selecting this menu option, you can easily fragment the selected hard disk.