- Level of compression
- Error codes
- Use condition
In french: zipCrée
MyArchive is zipArchive
// Create the archive
ResCreate = zipCreate(MyArchive, "\Temp\Archive.zip")
IF ResCreate = 0 THEN
// Add a file into an archive
ResAddFile = zipAddFile(MyArchive, ...
// Display an error message if the file was not added
IF ResAddFile <> 0 THEN
<Result> = zipCreate(<Archive> , <Archive path> [, <Options>])
Level of compression
The files added into an archive in Zip format are compressed by default. The compression level of files added into an archive can be modified by zipCompressionLevel
The following error codes are returned:
- 1: The path passed in parameter does not exist.
- 2: Access denied: the user has no sufficient rights.
The message corresponding to the error code is returned by zipMsgError
The maximum number of files that can be included:
- in a WDZ file: 232-1.
- in a ZIP file: 65535.
- in a CAB file: 65535.
- Only the archives in ZIP, TAR and TGZ (TAR.GZ) format are available.
- Only the archives in ZIP format are available.
The size of a file included in an archive (regardless of its format) must be less than 4 GB.
No archive in "RAR" format can be created.
This page is also available for…
Click [Add] to post a comment