1. Herfried K. Wagner’s VB.Any
  2. .NET
  3. Frequently Asked Questions

Compressing files and data

Compressing files and data

Compressing files and data

CAB format:

Microsoft Cabinet Software Development Kit

You can build CAB files using the Windows' "MAKECAB.EXE" utility.  For
extracting CAB files, you can use Microsoft's "EXTRACT.EXE", which is
available on the Windows XP CD or as part of the Windows XP Support Tools:

Windows XP Service Pack 2 Support Tools

Alternatively you can use p/invoke with 'SetupIterateCabinet'.  A sample
for Visual Basic 6.0 can be found here:

View and Extract CAB File Contents Programmatically

ZIP format and other archive formats:

.NET 2.0 contains ZIP support in the namespace 'System.IO.Compression':

.NET System.IO.Compression and zip files

Using GZipStream for Compression in .NET [Brian Grunkemeyer]

Since .NET 3.0 manipulation of ZIP files following the Open Packaging
Conventions is included within the .NET Framework:

'ZipPackage' Class ('System.IO.Packaging')

Using J#'s ZIP functionality:

Using the Zip Classes in the J# Class Libraries to Compress Files and Data
with C#

Using Windows' built-in ZIP support:

Compress Zip files with Windows Shell API and C#

The Zip, GZip, BZip2 and Tar Implementation For .NET

zlib Home Site

ComponentOne Zip™ for .NET