SetZipStreamPassword suggestion
BlitzMax Forums/BlitzMax Programming/SetZipStreamPassword suggestion
| ||
Add RealPath to make sure it works. If the relative path is used, and a file is loaded with the absolute path, an error will result. Rem bbdoc: Registers a password for a given zip file. Must be done before attempting to read any password protected zip file (or else, a TZipStreamReadException is thrown) End Rem Function SetZipStreamPassword(zipUrl$, password$) TZipStream.SetPassword(RealPath(zipUrl), password) End Function |