Posts tagged ‘unzip’

C# zip unzip

If you feel the need to zip and or unzip from your C# application here is a simple library that does the trick.  You can download the sharpDevelop zip library from here.  The create zip takes a recursive parameter as seen below.

using ICSharpCode.SharpZipLib.Zip;

// unzipper
FastZip Unzipper = new FastZip();
Unzipper.CreateZip( @“c:\tmp\myzip.zip”, @“c:\tmp\yz”, true, “”);
Unzipper.ExtractZip( @“c:\tmp\myzip.zip”, @“c:\tmp\unzip”, “”);