http://www.pinmo.com.cn/vbsite/down/ocx/ocx/xzipdemo.zip
解决方案 »
- 怎么把byte数组转换成Unicode格式的字符串,vb的StrConv好像有问题?
- 在用DATAGRID时碰到的问题
- 谁能具体解释一下,这是vb里哪部分知识,代表啥意思?vb书上有吗?
- 数据库课程设计小问题,有兴趣请进
- SystemParametersInfo
- VB编译好的程序为何不能在没装VB上运行?
- 关于Treeview控件的问题?
- 请问如何使ActiveX控件中贴图的背景透明,以致我可以重叠贴入两张图,谢谢!
- 关于VB 如何改游戏,紧急啊
- 怎样用sendmessage向textbox控件输入文本?
- 关于datagrid控件的一点问题,请各位帮帮!!
- 请问一个问题,tts引擎中如何设定朗读者的角色?
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.