Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
ZipFile.Open
Creates a new zip archive.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Compression | 3.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ 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 due to missing unicode support. 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
Release notes
- Version 14.4
- Improved Archive functions and UnZipFile.OpenContainer function to better read zip archives downloaded via Insert From URL script step.
Example Databases
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 7th February 2023