- @echo off
- for /f "tokens=2 delims=[" %%i in ('ver')do for /f "tokens=2,3 delims=. " %%j in ("%%i")do if %%j LSS 10 (set x=156)else set x=-5302
- reg add "HKCR\*\shell\copypath" /f /ve /t REG_SZ /d "复制文件路径"® add "HKCR\*\shell\copypath" /f /v "Icon" /t REG_SZ /d "imageres.dll,%x%"® add "HKCR\*\shell\copypath\command" /f /ve /t REG_SZ /d "mshta vbscript:clipboarddata.setdata(\"text\",\"%%1\")(close)"® add "HKCR\*\shell\copypath" /f /v "Position" /t REG_SZ /d "bottom"
- reg add "HKCR\Directory\shell\copypath" /f /ve /t REG_SZ /d "复制文件夹路径"® add "HKCR\Directory\shell\copypath" /f /v "Icon" /t REG_SZ /d "imageres.dll,%x%"® add "HKCR\Directory\shell\copypath\command" /f /ve /t REG_SZ /d "mshta vbscript:clipboarddata.setdata(\"text\",\"%%1\")(close)"® add "HKCR\Directory\shell\copypath" /f /v "Position" /t REG_SZ /d "bottom"
- pause
复制代码
|