Windows – How to Add ‘Duplicate This Folder’ to File Explorer Context Menu

context menuwindowswindows-explorer

is there an easy way, to add an item to windows explorer's context menu, i.e., when right click on a folder "X", there's a new item "duplicate this folder", such that after clicking, a copy "X – Copy" will be created?

Best Answer

Adding second answer since it describes different approach.

Custom context menu item for folders can be configured via Windows Registry:

  1. Open Registry editor: hit WinKey+R, type "regedit" and press enter
  2. Navigate to HKEY_CLASSES_ROOT\Directory\shell if you are administrator, HKEY_CURRENT_USER\Software\Classes\directory\shell otherwise
  3. Add menu item: create new key under "shell". You can name it "duplicate this folder" directly or give arbitrary name and set default value to "duplicate this folder" for this key.
  4. Assign functionality: create key named "command" inside new key. Set "command" key default value to cmd.exe /c robocopy "%1" "%1 - copy" /e
Related Question