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:
- Open Registry editor: hit WinKey+R, type "regedit" and press enter
- Navigate to HKEY_CLASSES_ROOT\Directory\shell if you are administrator, HKEY_CURRENT_USER\Software\Classes\directory\shell otherwise
- 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.
- 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