Add a file to a zip archive created with ZipCreateFile or ZipCreateBuffer.
OutputVar := ZipAddFile(ZipHandle, FileName , ZipFileName)<Function Example: Success := ZipAddFile(hZip, "MyScript.ahk", "scripts\MyScript.ahk")
The name of the variable in which to store 1 / true if file was added successfully or 0 / false if operation failed.
Zip handle returned from ZipCreateFile or ZipCreateBuffer.
Name or path of the file that will be added to zip archive.
Path and name of the file to use for zip archive. If omitted original file name will be used.
ZipCreateFile, ZipCloseFile, ZipOptions, UnZip, ZipCreateBuffer, ZipAddBuffer, ZipCloseBuffer, UnZipBuffer, ZipRawMemory, UnZipRawMemory, ZipInfo, ZipAddFolder
hZip:=ZipCreateFile("C:\Test.zip") ZipAddFile(hZip, "C:\MyScript.ahk") ZipCloseFile(hZip)