windows11 美化桌面图标后 提示“该文件没有与之关联的程序来执行该操作“解决方法
在windows11上使用盘姬工具箱进行桌面图标美化(去除小箭头)后,点击“此电脑”右键管理和任务栏快捷方式,出现报错:”该文件没有与之关联的程序来执行该操作“
原因:
可能是盘姬工具箱在win11上运行有问题
解决办法:
先恢复小箭头,然后再使用脚本去除小箭头
- 桌面新建txt文件,插入下面的代码:
taskkill /f /im explorer.exe
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\MicroSoft\Windows\CurrentVersion\Explorer\Shell lcons" /v 29 /d "C:\Windows\system32\imageres.dll,154" /t reg_sz /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell lcons" /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”
- 双击该文件,执行。
附:
去除小箭头.bat:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurentVersion\Explorer\Shell lcons" /v 29 /d "%systemroot%\system32\mageres.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