我想用下面语句执行压缩功能(已在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" ...
WSH的全称是Windows Script Host,是一种支持ActiveX(COM)的独立脚本语言。WSH脚本程序本来是为了替代DOS时代的批处理文件而产生的,后来由于WSH的应用很广泛,已经不只是局限于批处理的替代品了。从Windows98开始,操作系统就已经自带了WSH,因此在Windows98或以上的操作 ...
Heyo,<BR><BR>I have a VBScript that opens a command prompt, and does some stuff. As part of some error checking I want to use the AppActivate method to give focus to ...
Few are aware of scripting with batch files, but people don’t use batch files much unless when working with mountainous tasks. Even fewer are aware of Windows Scripting Host (WSH), a scripting ...