当前位置: 移动技术网 > IT编程>开发语言>.net > C#文件压缩

C#文件压缩

2018年12月13日  | 移动技术网IT编程  | 我要评论

旷世邪肆男,tvb破案类电视剧,人艰不拆是什么意思

using system.io.compression;

 


string tozippath = string.format("~/static/zip/{0}", dirname);                  //需要压缩的源文件
string tozipfilepath = string.format("~/static/zip/{0}", dirname + ".zip");  //压缩成新的zip文件

try
{
  zipfile.createfromdirectory(server.mappath(tozippath), server.mappath(tozipfilepath));
}
catch (exception ex){}

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网