Changing a directory's name in Archive

Aug 24, 2011 at 2:48 AM

I have a situation where I'm zipping up multiple folders into an archive.  I have a situation where I would like to compress the directory as a different name within the archive.  It would be awsome if I could do something like:

compressor.CompressDirectory(@"C:\Temp\MyDir", "MyArchiveDir", "C:\Temp\myarchive.7z");

Is there a way to achieve this with the existing methods?

Thanks!

Sep 14, 2011 at 2:52 AM

you can rename it after compressed 

Sep 14, 2011 at 2:39 PM
Edited Sep 14, 2011 at 2:39 PM

I thought I updated this discussion to include what I did to get around it.  Your way sounds enticing but I have no idea how to do what you propose.

What I did to get around the issue was to use the CompressFileDictionary method and specify all the files individually.