I have some code that used to work. But I today when I try it again. I kept got "[object error]".
I thought it's the problem of IE safety configure. But I can find how to config IE to make it work.
function Run() {
try {
var objShell = new ActiveXObject("wscript.shell");
objShell.Run("calc");
} catch(e) {
alert(e);
}
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…