关联 .wpf 文件:
[HKEY_CLASSES_ROOT\.wpf]
@="wpffile"
[HKEY_CLASSES_ROOT\.wpf\DefaultIcon]
[HKEY_CLASSES_ROOT\.wpf\shell]
[HKEY_CLASSES_ROOT\.wpf\shell\open]
[HKEY_CLASSES_ROOT\.wpf\shell\open\command]
@="\"c:\\wpftest.exe\""
[HKEY_CLASSES_ROOT\.wpf\shell\用wpf打开]
[HKEY_CLASSES_ROOT\.wpf\shell\用wpf打开\command]
@="\"c:\\wpftest.exe\""
c:\\wpftest.exe: 替换成你的程序的路径
[HKEY_CLASSES_ROOT\.wpf]
@="wpffile"
[HKEY_CLASSES_ROOT\.wpf\DefaultIcon]
[HKEY_CLASSES_ROOT\.wpf\shell]
[HKEY_CLASSES_ROOT\.wpf\shell\open]
[HKEY_CLASSES_ROOT\.wpf\shell\open\command]
@="\"c:\\wpftest.exe\""
[HKEY_CLASSES_ROOT\.wpf\shell\用wpf打开]
[HKEY_CLASSES_ROOT\.wpf\shell\用wpf打开\command]
@="\"c:\\wpftest.exe\""
c:\\wpftest.exe: 替换成你的程序的路径
本文介绍如何通过修改注册表来让特定程序关联并打开 .wpf 文件。通过配置注册表中的键值,可以指定使用 c:wpftest.exe 来打开这类文件。

5675

被折叠的 条评论
为什么被折叠?



