Last active
June 2, 2020 02:50
-
-
Save Bye-lemon/4b42ae990a76ac65ea5b7d1ee45c8a7a to your computer and use it in GitHub Desktop.
Copy as path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; 菜单项为复制路径,结果带引号 | |
[HKEY_CLASSES_ROOT\Allfilesystemobjects\shell\windows.copyaspath] | |
"CanonicalName"="{707C7BC6-685A-4A4D-A275-3966A5A3EFAA}" | |
"CommandStateHandler"="{3B1599F9-E00A-4BBF-AD3E-B3F99FA87779}" | |
"CommandStateSync"="" | |
"Description"="@shell32.dll,-30336" | |
"Icon"="imageres.dll,-5302" | |
"InvokeCommandOnSelection"=dword:00000001 | |
"MUIVerb"="@shell32.dll,-30329" | |
"VerbHandler"="{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}" | |
"VerbName"="copyaspath" | |
; 菜单项为copy path,结果不带引号 | |
[HKEY_CLASSES_ROOT\Directory\shell\copypath] | |
@="copy path of dir" | |
[HKEY_CLASSES_ROOT\Directory\shell\copypath\command] | |
@="mshta vbscript:clipboarddata.setdata(\"text\",\"%1\")(close)" | |
[HKEY_CLASSES_ROOT\*\shell\copypath] | |
@="copy path of file" | |
[HKEY_CLASSES_ROOT\*\shell\copypath\command] | |
@="mshta vbscript:clipboarddata.setdata(\"text\",\"%1\")(close)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment