Very often I require to perform (de)compression of archives programmatically. I use SharpZipLib for this purpose. After fiddling with several algorithms I found this simple piece of code that performs an elegant task of quick decompression of a zip archive.
internal void Decompress(string fileName,string extractPath)
{
FastZip fZip = new FastZip();
fZip.ExtractZip(fileName, extractPath, “”);
}
Link: http://dotnet.org.za/thea/archive/2006/01/17/Unzip-files-programmatically-in-C_2300_-_2D00_-_2300_ZipLib.aspx
January 2009 M T W T F S S « Dec 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 -
Blogroll
Tags
.NET Framework 3.5 ActiveX archive C# commands console debugging Development DotNET Debugging Programming Email Extensibility grep Guid JScript Lambda launch LINQ linux Microsoft MSDN Office2007 powershell practices programming Quotations Quotes run Script scripting sharpziplib shortcut Signature Snippet software Source Code SVN Script Command Code tools unix utilities VB.NET VBScript VSTO Windows WScript WSH zipCategories
-
Recent Comments
-
Login/Register
