新建文本文件,命令并命令
有两种方式参考
1、复制文件或者文件夹路径时 有引号
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"
复制粘贴后的效果
“C:\Users\popeye\Desktop\引号路径.reg”
2、复制文件或者文件夹路径时 没有引号
Windows Registry Editor Version 5.00
[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)"
复制粘贴后的效果
C:\Users\popeye\Desktop\路径.reg