下面的内容保存到一个新建的reg文件中, 然后执行, 右键菜单就有了
Windows Registry Editor Version 5.00
;文件
[HKEY_CLASSES_ROOT\*\shell\copypath]
@="Copy File Path"
[HKEY_CLASSES_ROOT\*\shell\copypath\command]
@="mshta vbscript:clipboarddata.setdata(\"text\",\"%1\")(close)"
;文件夹
[HKEY_CLASSES_ROOT\Directory\shell\copypath]
@="Copy Path"
[HKEY_CLASSES_ROOT\Directory\shell\copypath\command]
@="mshta vbscript:clipboarddata.setdata(\"text\",\"%1\")(close)"