windows 删除快捷方式箭头

windows 删除快捷方式箭头的脚本。

删除快捷方式的箭头:

1
2
3
4
5
6
7
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /d "%systemroot%system32imageres.dll,197" /t reg_sz /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%AppDataLocaliconcache.db"
del "%userprofile%AppDataLocaliconcache.db" /f /q
start explorer
pause
`

同样,如果想恢复快捷方式小箭头,只需要将文本文件的内容改成以下内容即可:

1
2
3
4
5
6
reg delete "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%AppDataLocaliconcache.db"
del "%userprofile%AppDataLocaliconcache.db" /f /q
start explorer
pause

然后再次以管理员身份运行即可。