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:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
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 )
Created 18th August 2014, last changed 12nd June 2020
ZipFile.CompressFiles - ZipFile.Open
Feedback: Report problem or ask question.