码迷,mamicode.com
首页 > Web开发 > 详细

html网页调用本地exe程序的实现方法:

时间:2017-03-09 15:29:10      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:attr   span   doc   htm   ogr   本地   try   路径   网页调用   

html网页调用本地exe程序的实现方法:
1.新建注册表具体文件:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\hhtpexe]

[HKEY_CLASSES_ROOT\hhtpexe\defaulticon ]
@="C:\\Program Files\\DMEO\\MultimediaDispatch.exe"--exe程序的路径

[HKEY_CLASSES_ROOT\hhtpexe\shell]

[HKEY_CLASSES_ROOT\hhtpexe\shell\open]

[HKEY_CLASSES_ROOT\hhtpexe\shell\open\command]
@="C:\\Program Files\\DMEO\\MultimediaDispatch.exe"--exe程序的路径

---hhtpexe此名称可以自定义

2.HTML页面

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  <html xmlns="http://www.w3.org/1999/xhtml">  

  <head>  

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  

  </head>  

    <body>  

        <div>  

    <href="hhtpexe://">  open exe  </a>  

       </div>

     </body>

 </html>  

--在html页面引用hhtpexe就可以实现调用

html网页调用本地exe程序的实现方法:

标签:attr   span   doc   htm   ogr   本地   try   路径   网页调用   

原文地址:http://www.cnblogs.com/xjiao/p/6525740.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!