windows 去除快捷方式小箭头

1.去掉小箭头

1
2
3
4
5
6
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

复制上面的代码。新建一个文本文件。粘贴后另存为.bat文件,然后以管理员身份打开即可。

2.恢复小箭头

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

同理,将上述代码另存为.bat文件,管理员身份打开。就可恢复小箭头了。