Dotnetzip on codeplex: http://dotnetzip.codeplex.com/
For details, see the source code ...... In short, it feels better than sharpziplib. In addition, dotnetzip supports VB, C #, and any. NET language.
Pressurization: (stolen from codeplex)
Using (zipfile zip = new zipfile ()) {// Add this map file into the "Images" directory in the ZIP Archive add this PNG file to the ZIP file's "Images" directory zip. addFile ("C :\\ images \ personal \ 7440-n49th.png", "Images "); // Add the report into a different directory in the archive, add the PDF file to the "Files" directory of the ZIP file, and put readme.txt in the root directory zip. addFile ("C :\\ reports \ 2008-regional-sales-report.pdf", "Files"); zip. addFile ("readme.txt"); // Save the zipfile as myzipfile.zip. save ("myzipfile.zip ");}
Easier decompression:
Using (zipfile zip = new zipfile ("myzipfile.zip") {zip. extractall ("C: \ myfolder", extractexistingfileaction. overwritesilently );}
That's all! All problems are fixed. Is it more convenient than sharpziplib!