Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
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