简体   繁体   English

7z无法提取使用ZipFile.CreateFromDirectory打包的.zip文件

[英]7z cant extract files of a .zip packed with ZipFile.CreateFromDirectory

I wrote a programm which zips some files together, for the zipping I am using this command: 我写了一个程序,它将一些文件压缩在一起,因为我正在使用这个命令:

ZipFile.CreateFromDirectory(My.Settings.UploadTemp, filename)

But the Problem is everytime I try to extract the images with 7z I get an error. 但问题是我每次尝试用7z提取图像时都会出错。

unsupported compression method

But with the standard Windows 7 archive tool everthing works. 但随着标准的Windows 7归档工具外翻工作。

EDIT: I found a workaround for my Problem. 编辑:我找到了解决问题的方法。

Dim zipper As ZipArchive = ZipFile.Open(Path, ZipArchiveMode.Create)
zipper.CreateEntryFromFile(...)

works greate 努力工作

I tried this and it seems to work. 我尝试了这个似乎工作。 Which version of 7zip are you using? 您使用的是哪个版本的7zip? Can you try to install the latest one? 你能尝试安装最新的吗?

Regards, Ivan Ivanov 此致,伊万伊万诺夫

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM