<SCRIPT language=JavaScript> function Run(strPath) { try { var objShell = new ActiveXObject("wscript.shell"); objShell.Run(strPath); objShell = null; } catch(e) { alert('找不到文件"'+strPath+'"。请确定路径是否正确.') } } </SCRIPT>
<a href="#" οnclick="Run('file:///D:\\Program%20Files\\AliWangWang\\AliIM.exe')" target='_blank'>打开</a>
备注,必须在IE下才能执行成功!