Click here to Skip to main content
13,095,218 members (80,478 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


7 bookmarked
Posted 1 Feb 2012

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.[^]Create a zip file using (ZipFile zip = new ZipFile()) { ...


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
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...


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 | Terms of Use | Mobile
Web01 | 2.8.170813.1 | Last Updated 1 Feb 2012
Article Copyright 2012 by Dean Oliver
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid