zip files from different folders

Oct 31, 2010 at 11:58 PM

Hello guys, great work!!!

One question for the moment....

i  have


and these files

a = C:\test\test1\test.txt

b = C:\test\test2\test.xls

c = C:\test\test3\test.bmp

if i add these files to a zip and save it in the C:\test it makes me a zip file with the test file and its subfolders and subfiles.I want to make a zip file in the C:\test in witch it will be contain only the files test.txt,test.xls etc. is there any way to do this??







Nov 1, 2010 at 2:33 AM
Edited Nov 1, 2010 at 2:34 AM

yes, there is a way to do what you want.

check the documentation on the AddFile methods.  You want the 2nd overload, the one that accepts a directoryPathInArchive argument.