multi volume compression not working

Mar 24, 2010 at 3:16 PM

I'm not sure if I am missing something here or not, but I can't seem to get multi volume compression working.

Here is my code:

SevenZipCompressor.SetLibraryPath(@"c:\Program Files\7-Zip\7z.dll");
SevenZipCompressor szcCompressor = new SevenZipCompressor();

//szcCompressor.VolumeSize = 10000;
szcCompressor.ArchiveFormat = OutArchiveFormat.Zip;
szcCompressor.CompressFiles("C:\\ziptest\\", "C:\\ziptest\\smalltest.bak");


Basically, removing the VolumeSize line will make things work. Adding it in makes it fail. When it fails it silently fails. I've added in event handlers to try and monitor the CompressFiles method. They fire as intended when the VolumeSize line is removed, but not at all when it is added in.

I've tried changing the archive format too, and it still doesn't work.


Running on Win7 Pro, Visual Studio 2005


Any ideas as to what I am doing wrong?

Mar 26, 2010 at 4:50 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.