在网页上启动桌面应用程序

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Test]
@=”Test”
“URL Protocol”=”应用程序路径 %l”

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Test\DefaultIcon]
@=”%SystemRoot%\\system32\\url.dll,0″

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Test\Shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Test\Shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Test\Shell\open\command]
@=”应用程序路径 %l”

注意: %1是百分号加上数字1

在网页上加一个这样的链接:
<a href=’Test://para1&para2&para3′>启动桌面应用程序</a>

如果用户点击这个网页链接,在注册表中对应的应用程序就可以被启动了。

来源: http://www.cnblogs.com/ilovejolly/archive/2007/06/25/794566.html

发表评论

电子邮件地址不会被公开。

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>