i add files to zip file in ZIP.ADD can i know if the zip is protect in password?
Professional Software Development Tools
i add files to zip file in ZIP.ADD can i know if the zip is protect in password?
Well try with Zip.GetContents and then extracting one of the files, if no errorcode, then there is no password protection.
Last edited by bule; 10-06-2006 at 07:19 AM.
Never know what life is gonna throw at you.
(Based on a true story.)
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???????