如何压缩多个文件.docVIP

  • 17
  • 0
  • 约1.97万字
  • 约 22页
  • 2016-12-19 发布于北京
  • 举报
如何压缩多个文件/文件夹 用例:   1.压缩 1      string folder = Path.Combine(Server.MapPath(~), TestCompress); 2      string file = file1.txt; 3      string zip = myzip; 4 5      SampleCompress.Compress(Path.Combine(folder, file), Path.Combine(folder, zip));   2.解压 1      string folder = Path.Combine(Server.MapPath(~), TestCompress); 2      string file = file1.txt; 3      string zip = myzip; 4 5      SampleCompress.Decompress(Path.Combine(folder, zip),Path.Combine(Path.Combine(folder, zipfolder), file));   由代码和使用例子我们可以了解到,Code1 只是支持单个文本文件的压缩/解压, 代码非常简单,但是却实际上却没什么用途,功能太少,只是让你有个初步的认识.下面介绍Code2来实现本文的主题内容.   Cod

文档评论(0)

1亿VIP精品文档

相关文档