|
Post by sbussinger on Feb 20, 2009 19:22:23 GMT -5
Is there an easy way to set the file password on a file-by-file basis? I'd like some files in the ZIP to be unencrypted, some to have one password and others to have yet another password.
I figured out that I can use "KeepZipOpen := true;" set the password, call Zip(), change the password and FilesList, call Zip(), etc. But is there an easier way to provide the password on a file by file basis so Zip() is only called once (so that a progress bar can be kept accurate)?
I was thinking perhaps if I changed the Password property during the OnStartZip() event it might work? But thought I'd better check to make sure that wouldn't hose the archive in some subtle way.
Thanks!
|
|
|
Post by Kevin on Feb 20, 2009 19:41:09 GMT -5
Yes, I believe you should be able to change the password within the OnStartZip event for each file.
Kevin
|
|