如何压缩多个文件\文件夹(GZipStream and C#)

上传者: lxbg90058 | 上传时间: 2021-04-13 15:58:47 | 文件大小: 71KB | 文件类型: RAR
在.Net Framework 2.0 中添加了System.IO.Compression 类来实现对文件/文件夹的压缩/解压(GZipStream方法),包括文档,代码,类文件

文件下载

资源详情

[{"title":"( 30 个子文件 71KB ) 如何压缩多个文件\\文件夹(GZipStream and C#)","children":[{"title":"Code","children":[{"title":"CompressProject.sln <span style='color:#111;'> 935B </span>","children":null,"spread":false},{"title":"CompressProject.suo <span style='color:#111;'> 17.00KB </span>","children":null,"spread":false},{"title":"CompressProject","children":[{"title":"CompressProject.csproj <span style='color:#111;'> 5.09KB </span>","children":null,"spread":false},{"title":"Compress.cs <span style='color:#111;'> 23.60KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"CompressProject.dll <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false},{"title":"CompressProject.pdb <span style='color:#111;'> 35.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Web.config <span style='color:#111;'> 6.92KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"CompressProject.dll <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false},{"title":"CompressProject.pdb <span style='color:#111;'> 35.50KB </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"CompressProject.csproj.FileListAbsolute.txt <span style='color:#111;'> 883B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":true},{"title":"CompressProject.csproj.user <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"App_Data","children":null,"spread":false},{"title":"Default.aspx <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"TestCompress","children":[{"title":"myzip <span style='color:#111;'> 128B </span>","children":null,"spread":false},{"title":"newfolder","children":[{"title":"file2.ppt <span style='color:#111;'> 9.00KB </span>","children":null,"spread":false},{"title":"img","children":[{"title":"file4.gif <span style='color:#111;'> 729B </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"file3.doc <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"file2.ppt <span style='color:#111;'> 9.00KB </span>","children":null,"spread":false},{"title":"file1.txt <span style='color:#111;'> 10B </span>","children":null,"spread":false},{"title":"img","children":[{"title":"file4.gif <span style='color:#111;'> 729B </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"zipfolder","children":[{"title":"file1.txt <span style='color:#111;'> 10B </span>","children":null,"spread":false}],"spread":false},{"title":"file3.doc <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"myzip2.zip <span style='color:#111;'> 7.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"Default.aspx.cs <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"Default.aspx.designer.cs <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"SampleCompress.cs <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Compress.cs <span style='color:#111;'> 23.60KB </span>","children":null,"spread":false},{"title":"如何压缩多个文件§文件夹(GZipStream and C#).doc <span style='color:#111;'> 35.00KB </span>","children":null,"spread":false}],"spread":true}]

评论信息

  • 许给谁的一世欢颜 :
    不能用,最后从外网上找了一段
    2020-06-11
  • shr356639 :
    可以用11111
    2020-02-27
  • xm057 :
    法国恢复规划法规
    2019-01-27
  • kangyanwen2003 :
    虽然没有想象中完美,不过也挺好的,感谢!
    2016-01-29
  • kevins115 :
    谢谢分享!自己稍做处理,解决了我的需求。谢谢!
    2016-01-15
  • pgb1025 :
    可用,但不通用!
    2015-11-26
  • Vicyn :
    虽然效果没有想象那么完美,不过我改了改还是很受用的,谢谢分享
    2014-10-24
  • hecgaoyuan :
    压缩带文件夹得有问题
    2014-07-31
  • guoliangjun161 :
    谢谢分享可以使用
    2014-07-23
  • China_Gril :
    只能压缩整个文件夹,不能选择性压缩
    2014-05-29

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明