I´m using SevenZipSharp (with 7z.dll). Now I´m trying to write a little program that will test the files of a directory if there is a file which could be extracted by 7z.dll.
First try was like this:
At the first non-valid archive file, this line throws me a "The stream is invalid or no corresponding signature was found.". Of course I can use Try...End Try, but this seems to be slow. Is there any better solution to test if the file is valid for 7z.dll?
Thanks!
First try was like this:
VB.NET:
Dim file As SevenZipExtractor = New SevenZipExtractor(IO.File.OpenRead(path))
At the first non-valid archive file, this line throws me a "The stream is invalid or no corresponding signature was found.". Of course I can use Try...End Try, but this seems to be slow. Is there any better solution to test if the file is valid for 7z.dll?
Thanks!