This project is read-only.

Check integrity of a archive

Aug 14, 2011 at 6:47 PM
Edited Aug 14, 2011 at 9:19 PM


i'm looking for a method to check the integrity of a archive.

For example i got a (complete) multi-rar archive, and SevenZipExtractor.Check() returns True.

But when i rename one part to smth else, the SevenZipExtractor.Check() returns still True.

It doesn't throw an exception or something.

Tested with:

    Private Function ArchiveCheck(ByVal Archive As String) As Boolean
        Dim Extractor As New SevenZip.SevenZipExtractor(Archive)

Returns this:

Whether the archive is ok or not.

Is it a bug or a feature? %-)

Or exists another way to check if the archive is complete and ready for extracting?



Aug 16, 2011 at 9:02 PM
Edited Aug 16, 2011 at 9:04 PM

I have done my script, all works perfect, great dll, but i miss the check if the archive is damaged or incomplete before i extract it.

Is there no way to check it? :-/


When the archive isn't ok, he just extract it up to the missing point and stops then without any exception or smth.