I need to create a huge archive (uncompressed) from a directory on disk, preferably using C#. I've tried DotNetZip, ZipArchive and manually doing it with WinRAR. WinRAR is blazing fast by comparison to the other two. Using DotNetZip, this is my code:
using (var zip = new ZipFile())
{
zip.CompressionLevel = CompressionLevel.None;
zip.AddDirectory("mydirectory");
zip.Save("savedirectory");
}
It works, and is easy but it's way too slow. I can start a process and do this using rar.exe from WinRAR, but I also would like to track progress reading the directory and saving the archive. All of which I get from DotNetZip.
Is there a way via options to speed my work up with DotNetZip? Or to track progress via rar.exe if kicked off with a process?
Or are there other packages I should look at? Commercial is fine too, I don't mind paying if it's fast.