Decompress old IMPLODE zip file with C#

I've got some zip files coming from a very old mainframe that I would like to decompress.  They will unzip with the built in windows "compressed folders" utility and older version of winzip (I read that version 12 no longer supports deflate), but I want to automate it.  Free libs like SharpZipLib or ZipLib are out as they are mostly based on the built in (and much more common) "deflate" algorithm.  Can anybody direct me to a component that will handle the decompression of these files?  I'd even settle for the shareware command line version of pkunzip if such a thing exists anymore (although a component would be my first choice).
LVL 11
Who is Participating?
zweiSoftware DeveloperCommented:
Sorry, I didn't read the question carefully. No, there's no library to do this kind of thing that I know of, but since you can do it from the command line with 7-zip you can use Process instead:

foreach (FileInfo fileInfo in DirecInfo.GetFiles("*.zip"))
       Process process = new Process();
       process.StartInfo.FileName = @"C:\Program Files\7-zip\7z.exe";
       process.StartInfo.Arguments = @" e C:\Directory\" + fileInfo.Name + @" -oC:\Directory";

Open in new window

b_levittAuthor Commented:
By the way 7zip seems to be my command line option:

I'd still be interested in a component though.
zweiSoftware DeveloperCommented:
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

zweiSoftware DeveloperCommented:
b_levittAuthor Commented:
Just about anything recent regarding creating zip files uses the 'deflate' algorithm.  These old files I have were zipped using implode (the old pkzip format).  I doubt anything exists but I thought I would ask.
Here is the tech. specs for the old zip formats:
you COULD write your own implementation.  

Or try the file against all of the various zip libraries out on the net (library only, you would have to write a PINVOKE wrapper)
Here is a thread asking the same question:
You could use the 7zip librarys in c# code:
b_levittAuthor Commented:
Thanks for the effort zwei.  Thanks for a couple of those links Mogal.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.