JavaScript打开客户端exe文件
2008-10-30 10:57
176 查看
<script type="text/javascript">
<!--
function runExecutable()
{
var executableFullPath = 'F://ZK//DownLoadFile//YodaoDict.exe';
try
{
var shellActiveXObject = new ActiveXObject("WScript.Shell");
if ( !shellActiveXObject )
{
alert('Could not get reference to WScript.Shell');
return;
}
shellActiveXObject.Run(executableFullPath, 1, false);
shellActiveXObject = null;
}
catch (errorObject)
{
alert('Error:/n' + errorObject.message);
}
}
// -->
</script>
<input type="button" onclick="runExecutable()" value="打开客户端程序">
<!--
function runExecutable()
{
var executableFullPath = 'F://ZK//DownLoadFile//YodaoDict.exe';
try
{
var shellActiveXObject = new ActiveXObject("WScript.Shell");
if ( !shellActiveXObject )
{
alert('Could not get reference to WScript.Shell');
return;
}
shellActiveXObject.Run(executableFullPath, 1, false);
shellActiveXObject = null;
}
catch (errorObject)
{
alert('Error:/n' + errorObject.message);
}
}
// -->
</script>
<input type="button" onclick="runExecutable()" value="打开客户端程序">
相关文章推荐
- JavaScript打开客户端exe文件的代码
- JavaScript打开客户端exe文件~
- JavaScript打开客户端exe文件的代码
- 困兽之斗!使用JavaScript执行客户端的exe文件(excute the .exe file on client-side machine by JavaScript)
- java调用Explorer.exe打开文件夹选中文件
- Vc6.0 编译发生致命链接错误 :不能打开exe的文件
- javascript iframe中打开文件,并检测iframe存在否
- C#中调用资源管理器(Explorer.exe)打开指定文件夹 + 并选中指定文件 + 调用(系统默认的播放类)软件(如WMP)打开(播放歌曲等)文件
- Myeclipse 6.0 打开jsp文件报错:Error opening the editor. com/genuitec/javascript/debug/
- jsp 实现文件下载到客户端并可直接打开或保存
- 在文件选择打开方式里,无法添加.exe程序怎么解决
- 深入剖析PE文件 (告诉你exe文件打开后是依据什么来创建进程并在系统中运行)
- 转载:vc6.0 打开文件的时候出现Microsoft Visual C++:MSDEV.EXE 应用程序错误
- MFC实现点击按钮打开一个指定的文件或者网址或者exe
- c# 打开exe文件与关闭exe文件 c#服务打开exe时候默认是没有窗体界面的
- Office Outlook无法打开exe等可执行文件解决方法
- [转贴]客户端不装adobe reader,打开pdf文件的插件
- 通过浏览器的超链接打开本地一个exe文件(即可以传参数)
- js检查客户端注册列表、打开应用、写入文件
- (项目名).exe”。已加载符号。 无法查找或打开 PDB 文件。