she swears <i>geek</i> is a term of endearment

Unzip C# Library

I found this post about unzip using c#.
As usual, a little research, and the amenability to using an open source library, and the job couldn’t be simpler!

First, download, unzip and reference the SharpZipLib .Net library.

Here is the complicated code required to unzip a file sitting in your application path:

new ICSharpCode.SharpZipLib.Zip.FastZip().ExtractZip( “c:\\temp\\myZipFile.zip”, “c:\\temp\\myUnzippedFiles”, “” );

take that ruby lovers!  Don’t forget to check that the dir exists and you probably should make the paths arguments to a function…

One Response to “Unzip C# Library”

  1. […] thought I’d follow up with another yeah baby for this c# zip library! I used it to unzip uploaded, packaged html mini-sites to a published location on […]

Leave a Reply