VB example Delphi example VC++ example
The Unzip method uncompresses files that are stored in a zip file and recreates them into the folder specified by the UnzipToFolder property.
The zip file to unzip from must be specified by setting the ZipFilename property.
The files to unzip must be specified by setting the FilesToProcess property. If the FilesToProcess property is left empty, then all the files in the zip file will be unzipped. Use the filtering properties when you need to limit processing to only files with specific attributes, sizes, dates, etc.
Declaration (ActiveX) | |
---|---|
Method Unzip() As xcdError |
Declaration (DLL API) | |
---|---|
int XzUnzip( HXCEEDZIP hZip ) |
A return value of type xcdError is returned. Only the return value of xerSuccess indicates that the method has been completed successfully. See the error codes topic for a list of possible return values.
When unzipping an encrypted zip file, only the EncryptionPassword property must be set. The EncryptionStrength and EncryptionMethod properties will be ignored as it is not necessary to know either values when unzipping and encrypted zip file.
Abort, EncryptionPassword, FilesToProcess and the filtering properties, PreservePaths, ProcessSubfolders, the SkipIf* properties, UnzipToFolder, ZipFilename and ExtraHeaders.
InsertDisk, UnzipPreprocessingFile, SkippingFile, FileStatus, GlobalStatus, UnzippingMemoryFile, Warning, InvalidPassword, ZipComment and ProcessCompleted.
Do you want to preserve existing files?Set the SkipIfExisting property to true.