Registry.SetValue("HKEY_CLASSES_ROOT\Foxtable","","URL:Foxtable")
Registry.SetValue("HKEY_CLASSES_ROOT\Foxtable","URL Protocol","")
Registry.SetValue("HKEY_CLASSES_ROOT\Foxtable\DefaultIcon","","Foxtable.exe")
Registry.SetValue("HKEY_CLASSES_ROOT\Foxtable\Shell\open\command","", "C:\foxtable\开发版\foxtable.exe %1")
执行上面代码.为注册表创建一个URL协议
然后在页面添加A标签
<a href="Foxtable://Open" >打开狐表</a>
只要点击该A标签就会打开狐表了.