How to exclude directories using

Mar 1, 2011 at 9:11 AM

In my application I have not found a way how to exclude the directory tree in the zip file ?

I am using zip.AddFile(Path) where Path is the full path to file to be added to the zip file.




Mar 8, 2011 at 7:01 PM

Some where in the forum I found out simply adding ,"\\") in zip.addfile command.

Mar 9, 2011 at 12:51 PM

yes, you can find that information in the reference documentation, too.

zipFile.Add(filename, "")

...will add a file into the ZipFile instance, at the specified path ("", in other words, no path at all) in the zipfile. 

Mar 9, 2011 at 1:01 PM

Thank's Cheeso - subject is clear.

It's an amazing application - no need for a Winzip Pro version to make simple zip's (even more sophisticates are posible).