var wshShell = new ActiveXObject("Wscript.Shell");
会报错,说:Automation Server can't create Object。
这个是因为IE的安全级别设置问题,修改可以解决:
选择:Internet Explorer , Tools, Internet options, Security, custom level,
选中: enable "Initializing and Script Activex controls not marked as safe"
通过降低安全级别来正确运行。