1. 程式人生 > 其它 >【轉】win10右鍵選單增加複製路徑快捷鍵

【轉】win10右鍵選單增加複製路徑快捷鍵

原文連結:


Window10下可以快速複製文字所在的路徑_ 知行合一 大道至簡-CSDN部落格
https://blog.csdn.net/cdl666666/article/details/106433439

一、複製結果帶引號

複製下面內容到一個新建的.reg檔案,然後雙擊執行即可

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"

二、複製結果不帶引號

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)"