- A Windows extension that is used to copy file(s)'s path through context menu (in Japanese).
- Environment:
Windows 10 20H2 x64
Visual Studio 2019
msvc2019
- Open cmd as administrator, and you may need to restart explorer.exe.
Register.bat
# or execute the following commands
regsvr32 x64\Release\CopyPathMenu.dll
- Setup registry for context menu (This process is not defined in rgs, you have to do it manually).
- Note that CLSID is set in CopyPathMenu.idl and CopyPathMenuImpl.rgs.
; Use Register.reg
[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\CopyPathMenu]
@="{7a73e28f-7fd5-436e-bdc0-8f25fb8ede0f}"
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\CopyPathMenu]
@="{7a73e28f-7fd5-436e-bdc0-8f25fb8ede0f}"
[HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\CopyPathMenu]
@="{7a73e28f-7fd5-436e-bdc0-8f25fb8ede0f}"
[HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\CopyPathMenu]
@="{7a73e28f-7fd5-436e-bdc0-8f25fb8ede0f}"
- Open cmd as administrator.
Unregister.bat
# or execute the following commands
regsvr32 /u x64\Release\CopyPathMenu.dll
- Remove context menu from registry.
; Use Unregister.reg
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\CopyPathMenu]
[-HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\CopyPathMenu]
[-HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\CopyPathMenu]
[-HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\CopyPathMenu]