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>
<a href="hhtpexe://"> open exe </a>
</div>
</body>
</html>
--在html頁面引用hhtpexe就可以實現調用