如何在c#.net中解压缩文件 [英] How to unzip file in c#.net

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

问题描述



有人可以使用C#.net共享代码以解压缩文件吗?解压缩时,它应保持相同的文件夹格式.

问候,
Sajith

Hi,

Can someone share the code to unzip file using C#.net. While unzip, it should maintain the same folder format.

Regards,
Sajith

推荐答案

http://msdn.microsoft.com/zh-CN -US/library/system.io.compression.deflatestream(v = VS.90).aspx [使用Windows Shell API和C#解压缩Zip文件 [使用J#运行时从C#程序压缩和解压缩 [
http://msdn.microsoft.com/en-us/library/system.io.compression.gzipstream(v=VS.90).aspx[^]
http://msdn.microsoft.com/en-US/library/system.io.compression.deflatestream(v=VS.90).aspx[^]
Decompress Zip files with Windows Shell API and C#[^]
Zip and Unzip from a C# program using J# runtime[^]


可能会有所帮助,

使用J#在C#中简单应用Zip文件和UnZip文件 [ dotnetzip/ [ ^ ]

:)
It might be helpful,

Simple Application to Zip and UnZip files in C# using J#[^]

dotnetzip/[^]

:)


使用 SharpZipLib [
Use SharpZipLib[^]. It''s open source, but with a licence exception so you can use it in ''real software'', it''s fully managed, and it works. I believe the download includes documentation, or if not I''m sure Google will help you out.


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

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