如何将超链接与我们的程序连接 [英] How to connect hyperlink with our program
问题描述
我有问题,我不知道如何将超链接连接到我的程序。
我想添加到注册表项,直到安装与我的程序连接文件扩展名。
I have problem, i don't know how to connect hyperlink with my program. I want add to registry key until install which connect file extension with my program.
例如。我在网站上有超链接打开文件.xyz,我想浏览器打开文件[my_program_in_c#]。
e.g. I have hyperlink on website which open file .xyz, and i wannna browser "open file as [my_program_in_c#]".
推荐答案
您可能需要在安装期间创建以下注册表项
You need to create the following registry keys, perhaps during installation
[HKEY_CLASSES_ROOT.xyz]
@ =dawid.xyz.1.0
[HKEY_CLASSES_ROOT.xyz] @="dawid.xyz.1.0"
[HKEY_CLASSES_ROOT.xyz \ OpenWithProgids]
dawid.xyz.1.0=
[HKEY_CLASSES_ROOT.xyz\OpenWithProgids] "dawid.xyz.1.0"=""
[HKEY_CLASSES_ROOT \\ \\ _dawid.xyz.1.0]
@ =扩展名说明
[HKEY_CLASSES_ROOT\dawid.xyz.1.0] @="Description of the extension"
[HKEY_CLASSES_ROOT\dawid.xyz.1.0\DefaultIcon]
@ =图标的有效位置
[HKEY_CLASSES_ROOT\dawid.xyz.1.0\DefaultIcon] @="valid location of icon"
[HKEY_CLASSES_ROOT\atmelstudio.objproj.6.1\shell\open\command]
@ = [my_program_in_c#
[HKEY_CLASSES_ROOT\atmelstudio.objproj.6.1\shell\open\command] @="[my_program_in_c#"
或手动使用这个
这篇关于如何将超链接与我们的程序连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!