如何使用C#sharp代码将文件夹压缩为zip文件 [英] how to compress a folder to zip file using C# sharp code

查看:317
本文介绍了如何使用C#sharp代码将文件夹压缩为zip文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在记事本中写了一些文字,我将记事本保存在一个文件夹中。该文件夹应该压缩为zip文件代码是什么。

i have wrote some text in notepad and i kept that notepad in a folder. that folder should be compress as a zip file what is the code.

推荐答案





有看看这里:

创建Zip .NET 4.5中的文件很容易 [ ^ ]

使用System.IO.Compression进行压缩 [ ^ ]

使用C#和SharpZipLib压缩文件夹 [ ^ ]

<小时ef =http://www.codeproject.com/Articles/12064/Compress-Zip-files-with-Windows-Shell-API-and-C>使用Windows Shell API和C#压缩Zip文件 [ ^ ]
Hi,

Have a look here:
Creating Zip Files Easily in .NET 4.5[^]
Zipping using System.IO.Compression[^]
Compress Folders with C# and the SharpZipLib[^]
Compress Zip files with Windows Shell API and C#[^]


使用此DLL LIB [ ^ ]
Using this DLL LIB[^]


这篇关于如何使用C#sharp代码将文件夹压缩为zip文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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