PDA

View Full Version : password in zip file


lnd
10-06-2006, 07:02 AM
i add files to zip file in ZIP.ADD can i know if the zip is protect in password?

bule
10-06-2006, 08:15 AM
Well try with Zip.GetContents and then extracting one of the files, if no errorcode, then there is no password protection.

lnd
10-06-2006, 12:45 PM
Zip.Extract("c:\\l2nd.lnd", {"*.*"}, "C:\\", true, true, the_pass, ZIP_OVERWRITE_NEVER, nil);
error = Application.GetLastError();
if (error == 2639) then
the_pass = "12345";
end

if i push the button i get the error 2639 and if i pus 2 times the button the its work. 2639 is the error to the password????????? or in anuder computer ther is anunde error???????