win11去除小箭头不当导致出错:该文件没有与之关联的应用来进行该操作

解决办法:恢复小箭头即可

新建文件,输入以下代码,把文件格式改为.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

若还想去除小箭头,可通过以下方法:
新建文件,输入以下代码,把文件格式改为.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
posted @ 2022-03-17 20:34  1940  阅读(2981)  评论(5编辑  收藏  举报