Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Creates a new file in the zip archive.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Compression | 3.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
This function was deprecated. Use Archive.Compress instead.
Parameter | Description | Example | Flags |
---|---|---|---|
filename | The filename to use. Can include path information with slashes as delimiter. | "myfolder/test.txt" | |
date | The file date to use. | Get(CurrentTimestamp) | |
Comment | The file comment. | "My first file." | Optional |
Encoding | The text encoding for the comment parameter. Default is UTF-8. Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ. |
UTF8 | Optional |
zip64 | Pass 1 to enable 64-bit zip file. Default is 0 for 32-bit zip file. |
0 | Optional |
Return OK or error.
Creates a file:
MBS( "ZipFile.CreateFile"; "test.txt"; $date )
This function checks for a license.
Created 18th August 2014, last changed 7th February 2023