windows打开方式提示`该文件没有与之关联的应用来执行该操作。请安装应用,若已经安装应用,请在"默认应用设置”页面中创建关联`解决方法

😂 这篇文章最后更新于490天前,您需要注意相关的内容是否还可用。

win10/11打开未知文件/打开方式提示该文件没有与之关联的应用来执行该操作。请安装应用,若已经安装应用,请在"默认应用设置”页面中创建关联解决方法

win10打开未知格式文件,选择打开方式,对于未知格式,虽然有各种软件可以选,但是没有图下选项,不能将该未知格式与应用绑定为默认打开方式。

image-20221210151554470

解决很简单,打开注册表,导入如下脚本即可。查看是否导入成功的路径为计算机\HKEY_CLASSES_ROOT\Unknown\shell\openas,脚本:

1.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Unknown\shell\openas]
@=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
  00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,\
  68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,35,\
  00,33,00,37,00,36,00,00,00
"MultiSelectModel"="Single"

[HKEY_CLASSES_ROOT\Unknown\shell\openas\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4f,00,70,00,\
  65,00,6e,00,57,00,69,00,74,00,68,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
  00,31,00,22,00,00,00
"DelegateExecute"="{e44e9428-bdbc-4987-a099-40dc8fd255e7}"

2.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Unknown\shell\OpenWithSetDefaultOn]
"MultiSelectModel"="Single"
"ProgrammaticAccessOnly"=""

[HKEY_CLASSES_ROOT\Unknown\shell\OpenWithSetDefaultOn\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4f,00,70,00,\
  65,00,6e,00,57,00,69,00,74,00,68,00,2e,00,65,00,78,00,65,00,20,00,2d,00,6f,\
  00,76,00,65,00,72,00,72,00,69,00,64,00,65,00,20,00,22,00,25,00,31,00,22,00,\
  00,00
"DelegateExecute"="{e44e9428-bdbc-4987-a099-40dc8fd255e7}"

保存为.reg文件后,图标会变成注册表的样子。双击打开它们,导入到注册表即可。注册表里可以看到,已经成功导入了。打开方式-选择其他应用,就可以愉快设置默认打开应用了。

https://blog.csdn.net/no_say_you_know/article/details/126803343