您好,欢迎来到外链网!
当前位置:外链网 » 站长资讯 » 专业问答 » 文章详细 订阅RssFeed

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

来源:互联网 浏览:87次 时间:2023-04-08

将下面代码复制进一个文本文档,然后将文本文档的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

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

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

44046257