How to connect hyperlink with our program

我的未来我决定 提交于 2019-12-11 11:14:48

问题


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.

e.g. I have hyperlink on website which open file .xyz, and i wannna browser "open file as [my_program_in_c#]".


回答1:


You need to create the following registry keys, perhaps during installation

[HKEY_CLASSES_ROOT.xyz] @="dawid.xyz.1.0"

[HKEY_CLASSES_ROOT.xyz\OpenWithProgids] "dawid.xyz.1.0"=""

[HKEY_CLASSES_ROOT\dawid.xyz.1.0] @="Description of the extension"

[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#"

or manually using this



来源:https://stackoverflow.com/questions/14997114/how-to-connect-hyperlink-with-our-program

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!