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
b_levittAsked:
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";
       process.Start();
}

Open in new window

0
 
b_levittAuthor Commented:
By the way 7zip seems to be my command line option:
http://www.7-zip.org/

I'd still be interested in a component though.
0
 
zweiSoftware DeveloperCommented:
0
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:
0
 
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.
0
 
MogalManicCommented:
Here is the tech. specs for the old zip formats:
  http://www.info-zip.org/doc/
you COULD write your own implementation.  

Or try the file against all of the various zip libraries out on the net
   http://dotnetzip.codeplex.com/
   http://www.info-zip.org/UnZip.html (library only, you would have to write a PINVOKE wrapper)
   http://zlib.net/
   
Here is a thread asking the same question:
  http://www.groupsrv.com/science/about8932.html
You could use the 7zip librarys in c# code:
  http://www.codeproject.com/KB/DLL/cs_interface_7zip.aspx?display=PrintAll&fid=1427631&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=51&select=2834300
0
 
b_levittAuthor Commented:
Thanks for the effort zwei.  Thanks for a couple of those links Mogal.
0
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.