简体   繁体   English

如何使用 C# 中的 SharpZipLib 提取多卷 zip 文件?

[英]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.

相关问题 如何在C#中使用Sharpziplib从http下载和提取单个文件? - how can i download and extract single file from http using sharpziplib in c#? 如何使用SharpZipLib从zip文件中提取文件夹? - How to extract a folder from zip file using SharpZipLib? 如何使用 ICSharpCode.SharpZipLib.Zip 在 zip 文件中创建多个子文件夹 - 请忽略.. 此问题已解决 - How can i create multiple subfolder inside the zip file using ICSharpCode.SharpZipLib.Zip -— please ignore .. this issue has been resolved 如何在C#中将ProgressBar添加到SharpZipLib实用程序 - How can I add a ProgressBar to my SharpZipLib utility in C# SharpZipLib ZipEntry如何更改zip中的文件名? - SharpZipLib ZipEntry how can you change the name of a file in the zip? 如何在C#中提取ZIP文件 - How to extract ZIP file in C# C#SharpZipLib提取.TGZ NotSupportedException - C# SharpZipLib extract .TGZ NotSupportedException 如何使用SharpZipLib提取或访问gzip中特定文件的流? - How to extract or access stream to specific file in gzip using SharpZipLib? 如何使用SevenZipSharp提取多卷7z文件? - How to extract a multi volume 7z file using SevenZipSharp? 尝试在Unity3D中解压缩zip时C#SharpZipLib无法读取流 - C# SharpZipLib Can't read stream when trying to uncompress zip in Unity3D
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM