问题复现:
点击打开任务栏中的应用程序时弹出如下内容:
问题原罪:
原想去除快捷方式图标的小箭头,滥用网上的方法,删除了注册表中的
IsShortcut
,
导致了这种情况。
恢复:
在桌面新建 txt 文件,把以下代码复制到 txt 文件,然后重命名为RecoveryArrow.bat(命名随意,但要以.bat为后缀名)
,右键以管理员身份运行。
taskkill /f /im explorer.exe
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "C:\Windows\system32\imageres.dll,154" /t reg_sz /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "C:\Windows\system32\imageres.dll,154" /t reg_sz /f
reg add "HKEY_CLASSES_ROOT\lnkfile" /v IsShortcut /t reg_sz /f
reg add "HEKY_CLASSES_ROOT\piffile" /v IsShortcut /t reg_sz /f
start explorer
完成后,桌面快捷方式图标的小箭头就又回来了,任务栏的应用程序也能正常打开。
正确去除小箭头:
亲爱的小箭头,再次见到你真好,但你还是留不得...
在桌面新建 txt 文件,把以下代码复制到 txt 文件,然后重命名为RemoveArrow.bat(命名随意,但要以.bat为后缀名)
,右键以管理员身份运行。
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