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: 10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5    Statistic    FMM    Blog  

UnZipFile.OpenFile

Opens a zip archive file.

Component Version macOS Windows Linux Server iOS SDK
Compression 3.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes

Deprecated

This function was deprecated. Use Archive.Extract instead.

MBS( "UnZipFile.OpenFile"; Path )   More

Parameters

Parameter Description Example
Path Native file path. $path

Result

Returns OK or error.

Description

Opens a zip archive file.
The plugin reads the directory so you can use UnZipFile.ItemCount function to learn the number of items.

Deprecated. Please use Archive.Extract 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

Open archive on Windows:

MBS( "UnZipFile.OpenFile"; "c:\folder\test.zip" )

Open Archive and expand:

MBS( "UnZipFile.OpenFile"; "C:\Users\Christian\Desktop\MBSFMPlugins153.zip")
MBS( "UnZipFile.ExtractFiles"; "C:\Users\Christian\Desktop\test")

See also

Example Databases

Blog Entries

FileMaker Magazin

Created 18th August 2014, last changed 1st June 2021


UnZipFile.OpenContainer - UnZipFile.ReadAsFileContainer

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos

Start Chat