使用批处理快速去除或恢复Win7桌面快捷方式的小箭头
使用批处理快速去除或恢复Win7桌面快捷方式的小箭头
复制以下内容,将其保存为bat格式的文件,点击即可快速去除桌面快捷方式的小箭头。
- @echo off
- color 0a
- title 去掉win7小箭头批处理
- for /f %%i in ('cd') do set currentpath=%%i
- copy %cd%\Empty.ico c:\windows
- @echo Windows Registry Editor Version 5.00>>D:\tmp.reg
- @echo [HKEY_CLASSES_ROOT\piffile]>>D:\tmp.reg
- @echo "IsShortcut"="">>D:\tmp.reg
- @echo [HKEY_CLASSES_ROOT\lnkfile]>>D:\tmp.reg
- @echo "IsShortcut"="">>D:\tmp.reg
- @echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons]>>D:\tmp.reg
- @echo "29"="C:\\Windows\\Empty.ico,0">>D:\tmp.reg
- regedit/s D:\tmp.reg
- del D:\tmp.reg
- taskkill /f /im Explorer.exe
- ping localhost -n 5
- start "explorer.exe" "%windir%\explorer.exe"
- exit
复制代码 复制以下内容,将其保存为bat格式的文件,点击即可快速恢复桌面快捷方式的小箭头。
- @echo off
- color 0a
- title 恢复win7小箭头批处理
- @echo Windows Registry Editor Version 5.00>>D:\tmp.reg
- @echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons]>>D:\tmp.reg
- regedit/s D:\tmp.reg
- del D:\tmp.reg
- del c:\windows\Empty.ico
- taskkill /f /im Explorer.exe
- ping localhost -n 5
- start "explorer.exe" "%windir%\explorer.exe"
- exit
复制代码 |
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。