UnZipBuffer()

Auto Hotkey

UnZipBuffer

Extract one items from a zip archive.

OutputVar := UnZipBuffer(ZipFileName, FileToExtract , VariableName, Password)
OutputVar := UnZipBuffer(Address, Size, FileToExtract [, VariableName, Password])
Command  Example: UnZipBuffer "MyZip.zip", "scripts\MyScript.ahk", var
                  UnZipBuffer &zip;, sz, "scripts\MyScript.ahk", var
Function Example: Success := UnZipBuffer("MyZip.zip", "scripts\MyScript.ahk", var)
                  Success := UnZipBuffer (&zip;, sz, "scripts\MyScript.ahk", var)

Parameters

OutputVar

The name of the variable in which to store the size of extracted file.

ZipFileName or Address

The path and name of zip archive to extract from or an address to memory containing a zip archive.

Size

The size in bytes of zip archive in memory. When previous parameter is ZipFileName this parameter is skipped, see examples.

FileToExtract

Relative path and name or zero based index of the file within zip archive that will be extracted.

VariableName (optional)

The name of the variable in which to store extracted file.

Password (optional)

Password for zip archive.

Related

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

Examples

sz := UnZipBuffer("C:\Test.zip", "Test.txt", var)