Extract Multi-volume Zip Archive

Overview

Aspose.ZIP for .NET enables you to extract multi-volume ZIP archives. The API provides a  constructor that accepts paths for all archive volumes. You must supply the last volume — containing the central directory — with a .zip extension, as well as the other volumes (with .z01, .z02, etc. extensions) separately. Volumes should be provided in the correct order.

Options for extracting archive

Aspose.ZIP can also extract encrypted multi-volume archives. In such cases, you need to pass an ArchiveLoadOptions instance with a decryption password.

Extract multi-volume archive

The following code example demonstrates how to extract a split ZIP archive:

1    using (Archive a = new Archive("part.zip", new string[] { "part.z01", "part.z02" }))
2    {
3        a.ExtractToDirectory(@"C:\extracted\")
4    }

Multi-volume ZIP archives support all standard features available in regular ZIP archives, such as encryption and multiple compression methods.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.