DotNetZip - 用C#、VB等任意语言进行Zip与Unzip操作

jopen 12年前
     DotNetZip是一个易于使用,快速的类库和工具集用于操作ZIP文件和文件夹。DotNetZip支持所有.Net语言包括:VB、C#。利用DotNetZip能够很方便实现:操作、读取、抽取和更新zip文件。支持Mono 和 MS .NET。以下是使用C#来创建一个ZIP文件的例子:    <pre class="brush:c#; toolbar: true; auto-links: false;"> using (ZipFile zip = new ZipFile())  {      // add this map file into the "images" directory in the zip archive      zip.AddFile("c:\\images\\personal\\7440-N49th.png", "images");      // add the report into a different directory in the archive      zip.AddFile("c:\\Reports\\2008-Regional-Sales-Report.pdf", "files");      zip.AddFile("ReadMe.txt");      zip.Save("MyZipFile.zip");  }</pre>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326764724858" target="_blank">http://www.open-open.com/lib/view/home/1326764724858</a></p>