Win7 系统在右键菜单中添加复制路径

Windows10中,按住shift右键单击某个文件,右键菜单里会出现“复制为路径”选项,但遗憾的是win7貌似没这个功能。

导入下列注册表项,可在W7加入该功能。

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTAllFilesystemObjectsshellwindows.copyaspath]
"CanonicalName"="{707C7BC6-685A-4A4D-A275-3966A5A3EFAA}"
"CommandStateHandler"="{3B1599F9-E00A-4BBF-AD3E-B3F99FA87779}"
"CommandStateSync"=""
"Description"="@shell32.dll,-30336"
"Icon"="shell32.dll,-133"
"InvokeCommandOnSelection"=dword:00000001
"MUIVerb"="@shell32.dll,-30329"
"VerbHandler"="{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}"
"VerbName"="copyaspath"
"Extended"="1"

=====================或者=============================

 

Windows Registry Editor Version 5.00

 

[HKEY_CLASSES_ROOTCLSID{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}]
@="Copy as Path Menu"
"ContextMenuOptIn"=""

 

[HKEY_CLASSES_ROOTAllFilesystemObjectsshellexContextMenuHandlersCopyAsPathMenu]
@="{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}"

 

[HKEY_CLASSES_ROOTCLSID{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}InProcServer32]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,
65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00
"ThreadingModel"="Apartment"

 

[HKEY_CLASSES_ROOTWow6432NodeCLSID{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}]
@="Copy as Path Menu"
"ContextMenuOptIn"=""

 

[HKEY_CLASSES_ROOTWow6432NodeCLSID{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}InProcServer32]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,
65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00
"ThreadingModel"="Apartment"

 

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellWindows.copyaspath]
"VerbName"="copyaspath"
"CommandStateSync"=""
"InvokeCommandOnSelection"=dword:00000001
"MUIVerb"="@shell32.dll,-30329"
"VerbHandler"="{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}"
"Description"="@shell32.dll,-30336"
"CanonicalName"="{707C7BC6-685A-4A4D-A275-3966A5A3EFAA}"
"CommandStateHandler"="{3B1599F9-E00A-4BBF-AD3E-B3F99FA87779}"
"Icon"="imageres.dll,-5302"

 

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionExplorerCommandStoreshellWindows.copyaspath]
"VerbName"="copyaspath"
"CommandStateSync"=""
"InvokeCommandOnSelection"=dword:00000001
"MUIVerb"="@shell32.dll,-30329"
"VerbHandler"="{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}"
"Description"="@shell32.dll,-30336"
"CanonicalName"="{707C7BC6-685A-4A4D-A275-3966A5A3EFAA}"
"CommandStateHandler"="{3B1599F9-E00A-4BBF-AD3E-B3F99FA87779}"
"Icon"="imageres.dll,-5302"

 

原文地址:https://www.cnblogs.com/mahocon/p/12356023.html