window10 电脑提示该文件没有与之关联的应用来执行该操作

 

问题:注册表去除了桌面图标的快捷方式造成的。

 

第一步:建一个文本文档,然后修改后缀。把.txt 替换成.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

 

posted @ 2020-03-10 22:12  程序员阿飞  阅读(1509)  评论(0编辑  收藏  举报