Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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 due to missing unicode support. 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
- Archive.Extract
- Path.FileMakerPathToNativePath
- UnZipFile.ExtractFiles
- UnZipFile.ItemCount
- WordFile.OpenFile
- ZipFile.Open
Example Databases
Blog Entries
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 7th February 2023