首页 > 编程知识 正文

win10应用程序无法关联文件,win10提示文件没有与之前关联应用

时间:2023-05-05 12:40:03 阅读:282526 作者:3550

将下面代码复制进一个文本文档,然后将文本文档的txt后缀改成bat。双击运行,可以解决问题。

问题发生原因是之前通过注册表去除了桌面图标的快捷方式的小标志。

/-----------------------------------------------------------/

taskkill /f /im explorer.exe

reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /d "C:Windowssystem32imageres.dll,154" /t reg_sz /f

reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /d "C:Windowssystem32imageres.dll,154" /t reg_sz /f

reg add "HKEY_CLASSES_ROOTlnkfile" /v IsShortcut /t reg_sz /f

reg add "HEKY_CLASSES_ROOTpiffile" /v IsShortcut /t reg_sz /f

start explorer

/-------------------------------------------------------------------/

转载于:https://www.cnblogs.com/hukuangjie/p/11319501.html

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。