Saturday, 16 February 2019

How to add a "duplicate this folder" in windows file explorer context menu?


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?



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


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...