How do I extract multiple .gz file's (WinRar Archives) without knowing the name of the files? I get multiple log files created from an application I use which all get saved to an archive, which is saved to a separate folder. The only thing the archive contains is one .log file.
So all archives are in one folder, (nothing else is in this folder other than .gz files) which all contains one .log file, I want all of these .log files to be extracted to a separate folder using vb.net, is this possible?
Example
Log Folder, C:\Logs
, which contains multiple .gz archives, which each contains one .log file.
Extract to > C:\Extracted
, which will then contain all of the .log files with their original names.
What I have tried:
I have tried this Link but it gives an error,
"ZipFile" is not declared, it may be inaccessible due to its protection level.
(Yes I added the reference System.IO.Compression.FileSystem
as stated in the msdn post.)
I have also tried the solution from this post, which works for .zip files, but not for .gz files which is what I need it for.