在C#中创建zip文件 [英] Create zip file in C#

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

问题描述

亲爱的先生,这是Hem Raj Thakur。



我想创建一个zip文件夹,同时下载多个文件。那么如何使用C#创建一个zip文件夹。



提前谢谢!

Dear Sir this is Hem Raj Thakur.

I want to create a zip folder for download of multiple files at the same time. So how can I create a zip folder using C#.

Thanks in advance!

推荐答案

GZipStream [ ^ ]将不帮你,因为这个类只允许一个人压缩单个文件。您可以查看图书馆 SharpZipLib [ ^ ]。它是免费的,可以下载这里 [ ^ ]。



  • .NET 1.1,.NET 2.0(3.5,4.0),.NET CF 1.0,.NET CF 2.0的程序集:下载[237 KB]
  • 源代码和示例下载[708 KB]
  • 帮助文件下载[1208 KB]
GZipStream[^] will not help you since this class only allows one to zip a single file. You might want to check out the library SharpZipLib[^]. It is free an can be downloaded here[^].

  • Assemblies for .NET 1.1, .NET 2.0 (3.5, 4.0), .NET CF 1.0, .NET CF 2.0: Download [237 KB]
  • Source code and samples Download [708 KB]
  • Help file Download [1208 KB]


参考以下文章:

[ ^ ]

Zip和简单的应用程序使用J#在C#中解压缩文件[ ^ ]

使用C#压缩/解压缩类处理标准Zip文件 [ ^ ]

使用Windows Shell API和C#压缩Zip文件 [ ^ ]

< a href =http://www.codeproject.com/Articles/37887/C-Zip-Files-and-or-Folders> C#Zip文件和/或文件夹 [ ^ ]







--Amit
Refer the articles below:
Creating Zip Files Easily in .NET 4.5[^]
Simple Application to Zip and UnZip files in C# using J#[^]
Processing Standard Zip Files with C# compression/decompression classes[^]
Compress Zip files with Windows Shell API and C#[^]
C# Zip Files and/or Folders[^]



--Amit


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

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