Solved

Unzip a zip file  .NET framework 4.0

Posted on 2013-12-06
5
5,342 Views
Last Modified: 2013-12-06
I need to unzip  a zip file using .net framework 4.0.
Can I do this using .net classes , or use third party software

Any code samples would be helpful
0
Comment
Question by:countrymeister
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 19

Expert Comment

by:jss1199
ID: 39700988
See these code samples at MSDN
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 39700993
Hi countrymeister;

.Net does support zipping and unzipping files.please see this web page for examples.

How to: Compress and Extract Files
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39701036
I wasn't aware that .NET had introduced classes for ZIP (e.g. .zip) files (thanks for that FernandoSoto!). In addition to the above, I have been using DotNetZip for a little while now, and it works very well. You can install it from NuGet.
0
 
LVL 1

Author Comment

by:countrymeister
ID: 39701076
I am using .nET 4.0, I see the examples are for .net 4.5, also the .net 4.0 library
shows an example of unzipping .gz file. I need to unzip a .ZIP file

 foreach (FileInfo fi in di.GetFiles("*.gz"))
            {
                Decompress(fi);

            }
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39701134
DotNetZip has plenty of examples of usage.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question