var WshShell =new ActiveXObject("WScript.Shell"); 怎么创建对象出错???
我想用下面语句执行压缩功能(已在d盘装了winzip),怎么运行提示出错,说automation不能创建对象,是不是程序前还要包含什么?
-----------------------------------
var WshShell =new ActiveXObject("WScript.Shell");
WshShell.Run (" d:\Winzip\WZZIP.exe f:\test\1.zip f:\html\1.htm f:\html\1.files" ,1, true);
-----------------------------------
望大侠赐教。。。