<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>js</title>
<SCRIPT language=JavaScript>
function Run(strPath)
{
try
{
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
}
catch(e)
{
if(confirm('找不到文件"'+strPath+'"')){
window.open('/autodownload/Conf_Setup.exe','_self');
}
}
}
</SCRIPT>
</head>
<!--以下是三种调用方式,onLoad(),oclick(),再就是直接写连接地址调用-->
<body onLoad="Javascript:Run('file:///C:/SMMeeting.exe');">
<a href="#" onclick="Run('file:///C:/SMMeeting.exe')">ES</a>
<a href="Release/SMMeeting.exe">ES2222</a>
</body>
</html>
我已经把SMMeeting.exe程序放到 C根目录下面,但运行后提示"找不到SMMeeting.exe文件"为什么?请教各位高手,谢谢!!
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>js</title>
<SCRIPT language=JavaScript>
function Run(strPath)
{
try
{
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
}
catch(e)
{
if(confirm('找不到文件"'+strPath+'"')){
window.open('/autodownload/Conf_Setup.exe','_self');
}
}
}
</SCRIPT>
</head>
<!--以下是三种调用方式,onLoad(),oclick(),再就是直接写连接地址调用-->
<body onLoad="Javascript:Run('file:///C:/SMMeeting.exe');">
<a href="#" onclick="Run('file:///C:/SMMeeting.exe')">ES</a>
<a href="Release/SMMeeting.exe">ES2222</a>
</body>
</html>
我已经把SMMeeting.exe程序放到 C根目录下面,但运行后提示"找不到SMMeeting.exe文件"为什么?请教各位高手,谢谢!!
用户自己不能 双击打开这个exe文件
一定要你帮他打开干嘛
<body onLoad="Javascript:Run('Explorer file:///C:/SMMeeting.exe');">