Click here to Skip to main content
Click here to Skip to main content

How to compress/decompress directories using GZipStream

, 1 Feb 2012
My alternative is to rather use a tried and tested compression api. It's simpler to use and you don't have to spend time developing helper methods to zip and unzip files.http://dotnetzip.codeplex.com/[^]Create a zip file using (ZipFile zip = new ZipFile()) { ...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

25 Jan 2012
Andrew Novik
2 alternatives  
Very simple console utility to compress/decompress directories uses GZipStream from the System.IO.Compression namespace.
4 Feb 2012
msmits
Note this code will not unzip general zip files. It only works with files zipped according to the package standard.To unzip regular zip files, there are several components available.I've used the Windows built-in COM component "Microsoft Shell Controls And Automation" (Add Reference, COM...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Dean Oliver
Software Developer BBD Johannesburg
South Africa South Africa
Bsc (Hons) Business Information Systems.
MCTS: Web Applications Development with Microsoft .NET Framework 4
MCTS: Windows Communication Foundation Development with Microsoft .NET Framework 4
MCTS: Accessing Data with Microsoft .NET Framework 4
Microsoft Certified Professional Developer Certification.

| | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 1 Feb 2012
Article Copyright 2012 by Dean Oliver
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid