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
ZipFile.UsePassword
Sets the password to use for compressing.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Compression | 5.1 | Yes | Yes | No | Yes | Yes |
MBS( "ZipFile.UsePassword"; Password { ; Encoding } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| Password | The password text. | "pass123" | |
| Encoding | The text encoding for Password parameter. Default is native. Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ. |
"native" | Optional |
Result
Returns OK or error.
Description
Sets the password to use for compressing.The password is needed to create encrypted files in archive.
Each item in archive could have its own password, but normally all have the same.
Examples
Set password:
MBS( "ZipFile.UsePassword"; "Hello" )
See also
- UnZipFile.ReadAsFileContainer
- UnZipFile.ReadAsGIFContainer
- UnZipFile.ReadAsHex
- UnZipFile.ReadAsJPEGContainer
- UnZipFile.ReadAsPNGContainer
- UnZipFile.ReadAsText
- UnZipFile.ReadToFile
- UnZipFile.UsePassword
- ZipFile.CreateFile
Example Databases
Blog Entries
Created 26th February 2015, last changed 24th February 2016
ZipFile.SetCompressionLevel - ZipFile.WriteContainer
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos