网页上调起本地程序的方法

reg文件,html文件

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\myapp]
@="URL:myapp Protocol Handler"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\myapp\DefaultIcon]
@="C:\\SeleniumTest.exe"

[HKEY_CLASSES_ROOT\myapp\shell]
@=""

[HKEY_CLASSES_ROOT\myapp\shell\open]
@=""

[HKEY_CLASSES_ROOT\myapp\shell\open\command]
@="\"C:\\SeleniumTest.exe\" \"%1\""
View Code
1 <a href="myapp://abc123...">start app</a>
View Code

 

posted @ 2021-05-06 13:36  毛毛虫!  阅读(100)  评论(0编辑  收藏  举报