問題:Win10系統,點擊此電腦右鍵管理和文件資源管理器出現了:該文件沒有與之關聯的程序來執行該操作。請安裝應用,若已經安裝應用,請在“默認應用設置“頁面中創建關聯。
原因:刪除快捷方式小箭頭導致的
參考鏈接:該文件沒有與之關聯的程序來執行該操作。請安裝應用,若已經安裝應用,請在"默認應用設置"
親測有效!!!
方法:保存為.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