|
-
May 13th, 2000, 11:36 AM
#1
Thread Starter
Fanatic Member
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
-
May 13th, 2000, 11:04 PM
#2
Junior Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|