I am using the paid version of Xceed.Zip.QuickZip.Zip utility in my application to compress a folder that contains files and directories. Here is the Xceed Zip command that I am using
Xceed.Zip.Licenser.LicenseKey = XceedZipKey;
Xceed.Zip.QuickZip.Zip(ZipFilePath, true, true, true, filesToZip);
ZipFilePath is the name of thr final zip including the path where the zip will be created. So it is like D:\MyData/MyZip.zip
.
And, filesToZip is like this D:\MyDataToZip\Versions\\*.*
.
So when the zip is created, I see a MyDataToZip folder, which contains Versions folder and then everything that is inside the Version folder.
But I want the zip to not contain the MyDataToZip & Versions folder. It should start from Versions folder. How can I achieve that?
Please note that my application is built on .Net 4.0, so I can't use System.IO.Compression.