Hi, Support:
Is there any simple method to test an rar/zip/7z…is password protected?
I use the following method to know whether an archive is password protected like this:
Dim Stream As IO.Stream = ArchiveEntry.Open() …...Extract(OutFile) a = Err.Number & " " & Err.Description 'Here a=5...Extract(OutFile,Password) a = Err.Number & " " & Err.Description 'Here a=0...