How to config IE to make "wscript.shell" work
javascript
Solution
You must enable ActiveX:
- Click on Tools
- Select Internet Options...
- Select Security tab.
- Select Internet in Web content zone.
- Then, click on Custom Level...
- Go through all the ActiveX setting there, select Prompt or Enable
Problem
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); } } ```