http://www.pinmo.com.cn/vbsite/down/ocx/ocx/xzipdemo.zip

解决方案 »

  1.   

    到Winzip网站下载:
    WZZIP.EXE (for zipping) and WZUNZIP.EXE (for unzipping)
    非常小巧,都只有21K。在程序中用Shell调用。The general syntax for WZUNZIP is:wzunzip [options] zipfile [@listfile] [path] [files...]Elements in [brackets] are optional.
    The options specify what you want WZUNZIP to do and how to do it.  Options are listed individually in the separate WZUNZIP reference section, but here is some general information:?Options are introduced by either a hyphen ["-d"] or a forward slash ["/d"].
    ?Multiple options must be separated by one or more spaces ("-d -n", not "-d-n").
    ?If you don't specify any options, WZUNZIP unzips all specified file(s).zipfile is the name of the Zip file you want to work with.  You may specify a drive and/or folder.  If you don't provide a filename extension, WZUNZIP adds ".zip".@listfile is the name of a text file that contains a list of the files to be extracted from the Zip file.  Each line of the listfile can contain one filename.Filenames may also include wildcards.  The wildcard specification "*" is assumed to mean "
    *.*", i.e., all files.  The wildcard specification "*." means "all files that have no extension."Filenames containing spaces may be quoted, but this is not required in a listfile.Listfiles can also contain comments: any text following a semicolon (';') is ignored, up to the end of the line.Here is an example of the contents of a listfile:; List of files to extract
    info.doc
    *.txt  ; Extract all .txt filespath specifies a drive and/or folder to which the files will be extracted.  If not specified, files are extracted relative to the current directory on the current drive.files is a literally-specified list of one or more files to be extracted from the Zip file.  Filename specifications follow the same rules as for file lists (above), except that filenames containing spaces must be enclosed in double quotes.If neither @listfile nor files is specified, WZUNZIP assumes *.*, i.e., all files in the Zip file.Exampleswzunzip test.zipExtracts all files from Test.zip to the current directory.wzunzip test.zip abc.txtExtracts ABC.TXT from Test.zip.wzunzip -d test.zipExtracts all files from Test.zip, recreating the directory structure from folder information stored in the Zip file.  New directories are created if necessary.  Hint: if folder information is stored in the Zip file, you will almost always want to use the -d option.wzunzip -d test.zip c:\docs\Extracts all files from Test.zip, recreating the directory structure from folder information stored in the Zip file.  The files are stored under C:\DOCS.  For example, if the file One.doc has no folder information in the Zip file, it would be stored as C:\Docs\One.doc; if the file Two.doc is stored in the Zip file with the folder Budget\, it would be stored as C:\Docs\Budget\Two.doc.wzunzip test.zip @files.lstExtracts from Test.zip all files that are listed in the text file Files.lst.wzunzip -v test.zipLists contents of Test.zip.wzunzip -v test.zip *.txtLists all files with extension ".txt" in Test.zip.
      

  2.   

    上面所说的Winzip命令行文件,在许多Winzip自解压包中就有,说不定你手边就有。一般还附带hlp文件。