Windows 8.1 - Add the Defragment command to the context menu

September 2016


Windows 8.1 - Add the Defragment command to the context menu



In this article you will learn how to add the Defragment command to the context menu (right-click) of Windows 8.1.
This procedure requires a manipulation of the Windows Registry:
  • Open the Run window and type: "regedit".
  • Expand the following key: HKEY_CLASSES_ROOT\Drive\shell
  • Click on Edit > New > Key.
  • Set the Default value as "Defragment"
  • Create a new Key and named it as "command".
  • Set its value as "defrag %1 -v".
  • Close the registry.

Related :

This document entitled « Windows 8.1 - Add the Defragment command to the context menu » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.