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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
ZipFile.Open
Creates a new zip archive.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Compression | 3.4 | Yes | Yes | No | Yes | Yes |
Deprecated
This function was deprecated. Use Archive.Compress instead.
MBS( "ZipFile.Open"; Path { ; Mode } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| Path | Native file path. | $path | |
| Mode | The appending mode: 0 to create a new archive (default), 1 create on file end, 2 append to existing archive. | 0 | Optional |
Result
Returns OK or error.
Description
Creates a new zip archive.Deprecated. Please use Archive.Compress for new projects.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
Examples
Create new archive:
MBS( "ZipFile.Open"; "c:\folder\test.zip"; 0 )
See also
- Archive.Compress
- IsError
- Path.FileMakerPathToNativePath
- UnZipFile.ExtractFiles
- UnZipFile.OpenFile
- ZipFile.CreateFile
Example Databases
FileMaker Magazin
Created 18th August 2014, last changed 12nd June 2020
ZipFile.CreateFile - ZipFile.SetCompressionLevel
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins