现在的位置: 首页 > 综合 > 正文

js 调用本地exe的例子(支持IE内核的浏览器)

2012年10月05日 ⁄ 综合 ⁄ 共 338字 ⁄ 字号 评论关闭

我实验了一下 : 使用IE内核的浏览器 都支持 火狐好像不行
复制代码 代码如下:
<html>
<head>
<script type="text/javascript">
function callExe()
{
// new ActiveXObject("Wscript.Shell").run("notepad.exe D:\\a.png.txt");
//
new ActiveXObject("Wscript.Shell").run("D:\\工具\\Pb6安装\\Pb6安装\\SETUP.EXE");
}
</script>
</head>
<body>
<input id="Button2" type="button" value="调用" onclick="callExe();" />
</body>
</html>

抱歉!评论已关闭.