ZipOptions

Changes options for zip archive created with ZipCreateFile.

OutputVar := ZipOptions(ZipHandle, Options)
Function Example: Success := ZipOptions(hZip, 0x80000000)

Parameters

OutputVar

The name of the variable in which to store 1 / true if file was added successfully or 0 / false if operation failed.

ZipHandle

Zip handle returned from ZipCreateFile.

Options

The only supported options is TZIP_OPTION_GZIP = 0x80000000.

Remarks

When TZIP_OPTION_GZIP is used only one file can be included in the zip archive.

Related

ZipCreateFile, ZipAddFile, ZipCloseFile, UnZip, ZipCreateBuffer, ZipAddBuffer, ZipCloseBuffer, UnZipBuffer, ZipRawMemory, UnZipRawMemory, ZipInfo, ZipAddFolder

Examples

hZip:=ZipCreateFile("C:\Test.zip")
ZipOptions(hZip, 0x80000000)
ZipAddFile(hZip, "C:\MyScript.ahk")
ZipCloseFile(hZip)