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);
}
}
You must enable ActiveX: