用js打开exe应用程序
来源:互联网 发布:进销存软件 推荐 知乎 编辑:程序博客网 时间:2024/06/09 18:01
function Run(strPath) { exe.value=strPath; try { var objShell=new ActiveXObject("wscript.shell"); objShell.Run(strPath); objShell=null; } catch(e) { alert(e) ; } }</script> 请输入要运行的程序:<br/><input name=exe type=text size=20 value="regedit"> <BUTTON class=button onclick="Run(exe.value)">decide</BUTTON> <BUTTON class=button onclick=exe.value="";>input</BUTTON><br/> <BUTTON class=button onclick="Run('notepad')">notepad</BUTTON><br/> <BUTTON class=button onclick="Run('mspaint')">mspaint</BUTTON><br/> <BUTTON class=button onclick="Run('calc')">calc</BUTTON><br/> <BUTTON class=button onclick="Run('cmd')">cmd</BUTTON><br/> <BUTTON class=button onclick="Run('Regedit')">Regedit</BUTTON><br/> <BUTTON class=button onclick="Run('Msconfig')">Msconfig</BUTTON><br/> <BUTTON class=button onclick="Run('file:///D:/EDI/PCstructure/bin/Debug/PCStructure.exe')">PC EXE</BUTTON><br/> <BUTTON class=button onclick="Run('IEXPLORE.EXE')">IE</BUTTON><br/> <BUTTON class=button onclick="Run('..')">..</BUTTON><br/> <BUTTON class=button onclick="Run('%windir%')">%windir%</BUTTON><br/>
在使用前,IE要设置
ActiveX 控件
- 用js打开exe应用程序
- php打开本地exe程序,js打开本地exe应用程序,并传递相关参数
- tcltk打开应用程序exe对比
- js打开本地exe程序
- c# asp.net 调用(打开).exe应用程序
- WPF 点击按钮,根据路劲打开.exe应用程序
- VS2010打开后报错"WPFFontCache_v0400.exe - 应用程序错误"解决方案
- wine----Ubuntu下打开exe等windows下的应用程序
- 一个.exe文件通过注册表获取另一个.exe最新的版本来打开应用程序
- 打开浏览器通过JS访问本地EXE(自用)
- 用B/S方式运行Exe应用程序
- 用js调用exe程序
- 打开应用程序
- js 通过浏览器直接打开应用程序(IOS,Android)
- 如何通过js来打开客户端的应用程序
- VC6.0打开文件,出现“MSDEV.EXE-应用程序错误 遇到问题需要关闭
- vc6.0 打开文件的时候出现Microsoft Visual C++:MSDEV.EXE 应用程序错误
- vc6.0 打开文件的时候出现Microsoft Visual C++:MSDEV.EXE 应用程序错误
- linux基础编程 套接字socket 完整的服务器端多线程socket程序
- java去除字符串的左右空格
- POJ 1083
- xiaxiaoyuzone.com , 我的新博克
- Android 网络下载 google天气图标下载实例(源码)
- 用js打开exe应用程序
- Android 图片平铺实现方式
- fopen后面参数对文件操作的相应关系
- Getting Files Using DownloadManager
- 霍金称时光机理论上可行 警告勿回去看历史
- 这篇日志对于ios5上UI的自定义有个比较简明的描述
- windows xp 驱动开发(十八) USB驱动程序开发用到的工具总结
- android项目导入后中文乱码
- 释放二维数组