如何解压缩zip文件 [英] how to unzip the zip file

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

问题描述

大家好,



我想解压缩wpf中的zip文件夹。

如果我使用框架4.5,那么我可以使用 ZipArchive 。但是我想使用.net 4.0。

我曾尝试使用 GZipStream 但它给了我错误'那个标题幻数缺失'。

i试过 ssharpziblib 。但是使用那些文件会被破坏。

我曾尝试使用 shell32 但它的工作速度非常慢。

请问任何人请告诉我使用c#4.0解压缩文件的正确方法?

Hello all,

I want to unzip the zip folder in wpf.
If i use framework 4.5 then i can use ZipArchive. But i want to use .net 4.0.
I had tried with GZipStream but its giving me the error 'that header magic number is missing'.
i had tried ssharpziblib. but using that files are going to be corrupted.
I had tried using shell32 but its working very slow.
Can any one please tell me the right way to unzip file using c# 4.0?

推荐答案

检查:



http://www.aspdotnet-suresh.com /2013/04/extract-unzip-files-in-zip-folder-in.html [ ^ ]


希望这有助于你



[ http://social.msdn .microsoft.com /论坛/ vstudio / EN-US / 53a468a2-0135-4040-9e7b-7c113b9f57ee /提取物,拉链或RAR压缩文件,使用-C-netframew ork-40 [ ^ ]]
Hope this helps you

[http://social.msdn.microsoft.com/forums/vstudio/en-US/53a468a2-0135-4040-9e7b-7c113b9f57ee/extract-zip-or-rar-file-using-c-netframework-40[^]]


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

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