[英]How can I extract a multi-volume zip file using SharpZipLib in C#?
I have a single file, Setup1.cab, which is split up into Setup1.zip.001 and Setup1.zip.002 that I used 7zip to archive.我有一个文件,Setup1.cab,它被分成我使用 7zip 存档的 Setup1.zip.001 和 Setup1.zip.002。 Once those volumes reach their destination, I'd like to be able to use C# to extract that file from both archives into the same directory where they will reside.
一旦这些卷到达目的地,我希望能够使用 C# 将该文件从两个档案中提取到它们将驻留的同一目录中。 Is this something that SharpZipLib is capable of, or should I be using another tool?
这是 SharpZipLib 能够做到的,还是我应该使用其他工具?
Otherwise, is there a way to combine the two using C# (or another tool - I'm open,) into one zip file?否则,有没有办法使用 C# (或其他工具 - 我打开了)将两者结合到一个 zip 文件中? THEN extract it using SharpZipLib?
然后使用 SharpZipLib 提取它? Thanks!
谢谢!
EDIT: 7zip will not be installed on the destination machines.编辑:7zip 不会安装在目标机器上。 Also, I'm open to using a different method of archiving the original file;
另外,我愿意使用不同的方法来归档原始文件; I just need it to be in chunks of under 500MB, and the original file is 570MB.
我只需要它在 500MB 以下的块中,原始文件是 570MB。
I would take a look at the SevenZipSharp library and actually use 7zip via C# to handle the decompression.我会看一下SevenZipSharp 库,并通过 C# 实际使用 7zip 来处理解压缩。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.