function exe(){
var sh=new ActiveXObject("Scripting.shell");
var s="c:\\WINDOWS\\system32\\cmd.exe";
sh.run(s);
}
<input type="button" onclick="exe();" value="open CMD"/>
错误提示:Automatisierungsserver kann Object nicht erstellen 该如何设置ie浏览器,多谢了!!!
var sh=new ActiveXObject("Scripting.shell");
var s="c:\\WINDOWS\\system32\\cmd.exe";
sh.run(s);
}
<input type="button" onclick="exe();" value="open CMD"/>
错误提示:Automatisierungsserver kann Object nicht erstellen 该如何设置ie浏览器,多谢了!!!
function exe(){
var sh=new ActiveXObject("WScript.shell");
var s="c:\\WINDOWS\\system32\\cmd.exe";
sh.run(s);
}
var sh=new ActiveXObject("WScript.shell");这是13行Meldung: Automatisierungsserver kann Objekt nicht erstellen.
Zeile: 13
Zeichen: 8
Code: 0
URI: http://localhost:8080/Webde/js/export.js
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script language="javascript">
//启动cmd
function exe(){
var sh=new ActiveXObject("WScript.shell");
var s="c:\\WINDOWS\\system32\\cmd.exe";
sh.run(s);
}
</script>
</HEAD> <BODY>
<input type="button" onclick="exe()" value="启动cmd"><br>
</BODY>
</HTML>