js 调用本地exe的例子(支持IE内核的浏览器)
更新时间:2012年12月26日 11:06:31 作者:
js 调用本地exe程序.我实验了一下 : 使用IE内核的浏览器 都支持 火狐好像不行,感兴趣的碰可以研究下
我实验了一下 : 使用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>
复制代码 代码如下:
<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>
相关文章
JS解决 Array.fill()参数为对象指向同一个引用地址的问题
这篇文章主要介绍了JS解决 Array.fill()参数为对象指向同一个引用地址问题,解决方案使用map返回出不同的引用的地址,fill参数可随意填写(不为空),主要是map函数中返回的数据,需要的朋友可以参考下2023-02-02


最新评论