在C#4.0中压缩文件 [英] Zipping of files in C# 4.0

查看:83
本文介绍了在C#4.0中压缩文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想在过去三个月的Archieve文件中的相应子文件夹中没有四方派对dlls.And他们必须压缩到每个子文件夹中的特定文件夹,格式名称为文件夹-yyyy / mm // dd。



请帮我这个。



谢谢

解决方案

要使用ZIP,您可以使用名为SharpCompress的开源完全原生.NET库: http://sharpcompress.codeplex.com [ ^ ]。



另一种选择是#ziplib:http://www.icsharpcode.net/opensource/sharpziplib/ [ ^ ]。



另一个开源选项是使用Se venZipSharp,着名的7-Zip的.NET包装器:

http://en.wikipedia .org / wiki / 7-Zip [ ^ ],

http://sevenzipsharp.codeplex.com/ [ ^ ]。



-SA

Hi,

I would like to Archieve files for last three months in corresponding subfolders in a directory with no thrird party dlls.And they have to zip to the specific folder in their each subfolder with format name of the folder-yyyy/mm//dd.

Please help me with this.

Thanks

解决方案

For working with ZIP, you can use the open-source fully native .NET library called SharpCompress: http://sharpcompress.codeplex.com[^].

Another option is #ziplib: http://www.icsharpcode.net/opensource/sharpziplib/[^].

And yet another open-source option is using SevenZipSharp, a .NET wrapper of the famous 7-Zip:
http://en.wikipedia.org/wiki/7-Zip[^],
http://sevenzipsharp.codeplex.com/[^].

—SA


这篇关于在C#4.0中压缩文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆