-
Does anyone know how can I check if ZIP file is password protected (using XceedZip.Ocx). And also how to handle errors in this OCX (for example when file is not a valid ZIP file how can I give the user info about it)
ANY help would be really appreciated.
Thanks in advance
-
in events of XceedZip you have "bEncrypted As Boolean".
Just read bEncrypted; if it's set to true then it's password encrypted!
Also you can put the event in your code:
Private Sub xZip_InvalidPassword(ByVal sFilename As String, sNewPassword As String, bRetry As Boolean)
in each operation you try on the zip file, if it's password protected, the event InvalidPassword it's triggered.
Sergio
Portuguese SP