去除Win10快捷方式箭头

under 疑难杂症  tag 脚本    Published on February 8th , 2020 at 05:44 am

去除快捷方式箭头(一定要用管理员身份运行)

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db"
del "%userprofile%\AppData\Local\iconcache.db" /f /q
start explorer
pause

后缀名bat

恢复快捷方式

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db"
del "%userprofile%\AppData\Local\iconcache.db" /f /q
start explorer
pause

后缀名bat

下面这个方法千万不能用

  @echo off

  color 2

  reg delete HKCR\lnkfile /v IsShortcut /f

  reg delete HKCR\piffile /v IsShortcut /f

  reg delete HKCR\InternetShortcut /v IsShortcut /f

  taskkill /f /im explorer.exe && explorer

本文由simyng创作, 采用知识共享署名4.0 国际许可协议进行许可,转载前请务必署名
  文章最后更新时间为:February 10th , 2020 at 11:07 pm