Solved

Unzip a zip file  .NET framework 4.0

Posted on 2013-12-06
5
4,834 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
5 Comments
 
LVL 19

Expert Comment

by:jss1199
Comment Utility
See these code samples at MSDN
0
 
LVL 62

Expert Comment

by:Fernando Soto
Comment Utility
Hi countrymeister;

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

How to: Compress and Extract Files
0
 
LVL 74

Expert Comment

by:käµfm³d 👽
Comment Utility
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
Comment Utility
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 74

Accepted Solution

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now