部分内容转载自: http://blog.sina.com.cn/s/blog_e2b8213a0102wqby.html
项目中遇到某需求:chorme要运行IE并打开网页。解决方案之一就是通过自定义协议来实现该需求。
在注册表中写入如下内容来进行自定义协议:
[HKEY_CLASSES_ROOT\openIE]
@="URL:OpenIE Protocol"
"URL Protocol"=""[HKEY_CLASSES_ROOT\openIE\DefaultIcon]
@="iexplore.exe,1"[HKEY_CLASSES_ROOT\openIE\shell]
[HKEY_CLASSES_ROOT\openIE\shell\open]
[HKEY_CLASSES_ROOT\openIE\shell\open\command]
@="cmd /c set m=%1 & call set m=%%m:openIE:=%% & call \"C:\\Program Files\\Internet Explorer\\iexplore.exe\" %%m%% & exit"
然后使用openIE协议,如《a href = “openIE:http://www.baidu.com”》点我使用外部协议运行IE打开百度《/a》进行访问百度。
但是这样会弹出cmd的命令框,给用户带来不好的体验。解决方法如下:
链接:http://pan.baidu.com/s/1sllgzxV 密码:ugpk
内容是一个可以解压的exe,解压后有三个文件&#x