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

Example Databases

This function checks for a license.

Created 18th August 2014, last changed 7th February 2023


ZipFile.CreateFile - ZipFile.SetCompressionLevel