无法使用ZIPPACKAGE解压缩 [英] unable to unzip using ZIPPACKAGE

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

问题描述


m无法使用system.IO.packaging的ZIPPACKAGE解压缩文件夹.
:(
d文件夹包含XML,XLS,HTM等不同格式的文件.
我所拥有的全部是DAT,我在一个本地驱动器frm中获得了一个d文件夹(压缩格式),这是一个公用的共享位置,我直接将d压缩文件夹2复制到了我的本地驱动器frm中.
文件夹的大小约为30 MB(希望与大小无关).
我来到了2 knw abt system.Googling的IO.packaging ... n通过对sm进行了相关更改来实现了d代码.
需要紧急帮助.
提前Thnx


m unable to unzip a folder using ZIPPACKAGE of system.IO.packaging.
:(
d folder consists of files in different formats like XML,XLS,HTM etc.
all i hv is dat i get d folder(in zipped format)in one of my local drives frm a common shared location & i directly copy d zipped folder 2 my local drive frm dere.
the size of the folder is approx 30 MB (hope dere''s no issue related to the size).
i came 2 knw abt system.IO.packaging by Googling...n implemented d code by making sm relevant changes.
need urgent help.
Thnx in advance

推荐答案

我不知道ZIPPACKAGE.我正在使用来自CodePlex的DotNetZip库 [
I don''t know about the ZIPPACKAGE. I''m using DotNetZip Library from CodePlex[^]. It is easy to use in C# or VB.NET and the examples are good.

For instance the follow code would unzip all files in a WinZip file (using the DotNetZip code)
Imports Ionic.Zip

Private Sub UnzipFile(filename As String, targetFolder As String, password As String)
    Using zip As ZipFile = ZipFile.Read(filename)
        If String.IsNullOrEmpty(password) Then
            zip.Password = password
        End If

        zip.ExtractAll(targetFolder)
    End Using
End Sub 


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

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