<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" οnclick="runExecutable()" value="打开客户端程序">