<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){
alert('找不到文件"'+strPath+'"(或它的组件之一)。请确定路径和文件名是否正确.');
alert(e.message);
alert(e.description);
alert(e.number) ;
alert(e.name);
}
}
</SCRIPT>
</head>
<body >
<a href="#" onclick="Run('file:///C:/Users/ipmitool/ipmitool_client.exe 10.152.93.175')">运行EXE</a>
</body>
</html>