How do I call the WinZip command line on the server side to pack and compress multiple files that are uploaded?
To solve this problem, first of all, to understand the Windows scripting Host, referred to as wsh! Here is a reference to Microsoft's explanation:
************************************************************************
* WSH is one of a series of Microsoft scripting technologies, which simply provides a scripting environment, *
* In this environment, some objects are predefined, and other objects in COM can also be used.
*
* He used a scripting engine to interpret the script, and Microsoft itself supported VBScript and JScript, *
* A third party can also develop its own scripting engine.
*
************************************************************************
The point is that you first make up some script files (Microsoft comes with examples, suffixes. vbs or. js),
Then use a program to explain to him the execution, this program is called Windows Scripting Host, program
The name is Wscript.exe (or command line Cscript.exe), you can check your machine
There are no these two documents, you know there is no WSH. (Win2000 is under winnt/system32/)
This is much like a batch file, except that it is not a command line, but a script written in the script language.
Here's a brief introduction to WSH. Several built-in objects include:
1. Objects provided by Wscript.exe
Wscript is exposed as a Wscript to the scripting engine.
WSHArguments is not public; accessed through the WScript.Arguments property.
Into
2. Objects provided by Wshom.ocx.
WshShell an automatic object. ProgID is Wscript.wshshell.
(Note: This is what we want to use, can execute DOS command)
WSHNetwork an automatic object. ProgID is wscript.wshnetwork.
Wshshortcut is not public; accessed through the Wshshell.createshortcut method.
Wshurlshortcut is not public; accessed through the Wshshell.createshortcut method.
Wshcollection is not public; accessed through wshnetwork.enumnetworkdrives or Wshnetwork.enumprinterconnection methods.
Wshenvironment is not public; accessed through the Wshshell.environment property.
Wshspecialfolders is not public; accessed through the Wshshell.folder property.
They can mainly complete the acquisition of environment variables, network landing, drive mapping, fast-truncated way to create,
program loading, special folders (such as system folders) information acquisition functions.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.