Users often find the built-in disk defragmentation feature in the operating system somewhat cumbersome and time-consuming. This article will guide you on creating a shortcut to add Defragment to the right-click menu, making it simpler to defragment your hard drive with just a few easy steps.
HOW TO ADD DEFRAGMENT TO RIGHT-CLICK MENU ON HARD DRIVE
Step 1: To add to the right-click menu, customize the Registry (it's advisable to back up the Registry before making changes to avoid potential errors). Select the Start menu at the bottom-left corner of the screen, in the Search box, type regedit, and press enter to access the Registry Editor
Step 2: In the Registry Editor window, navigate to the shell folder at the path HKEY_CLASSES_ROOTDriveshell
Step 3: Create a Key (or subfolder) of the shell folder by right-clicking on shell -> New -> Key and naming the Key as runas
Step 4: At the runas Key you just created, edit the (Default) value by right-clicking and selecting Modify... or double-clicking the left mouse button.
Step 5: In the Edit String window, in the Value data field, type “Defragment” to display the Defragment command in the right-click menu
Step 6: Next, to create a task for the Defragment command, you need to create another subkey of the runas key named command.
Step 7: Continue to set the Value data of the (Default) value of the command key to “defrag %1 –v” (copy excluding the quotation marks)
You can further customize selecting the Defragment command in the Shift + Right-click menu instead of the Right-click by right-clicking on the runas key, selecting New -> String value , then naming the Value as Extended.
If you find yourself unable to perform the above steps, you can download and use THIS file to automatically add Defragment to the right-click menu. Once done, you can immediately check the results.
We hope this article on adding Defragment to the right-click menu on your hard drive will be helpful for you in improving your hard drive speed. We recommend Defragmenting your hard drive monthly to ensure optimal performance. Additionally, you can use various software to check your hard drive's condition, such as CrystalDiskInfo or CPU Z... Among them, CrystalDiskInfo software supports checking and detecting suspicious actions, status of your hard drive to help you promptly address any issues.
