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
UnZipFile.OpenFile
Opens a zip archive file.
| 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.
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.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
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
- Archive.Compress
- Path.FileMakerPathToNativePath
- UnZipFile.ExtractFiles
- UnZipFile.ItemCount
- WordFile.OpenFile
- ZipFile.Open
Example Databases
Blog Entries
FileMaker Magazin
Created 18th August 2014, last changed 12nd June 2020
UnZipFile.OpenContainer - UnZipFile.ReadAsFileContainer
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins