Archived Forum Post

Index of archived forum posts

Question:

Zipping Sub Folders

Aug 14 '12 at 13:48

If I have a folder called c:temp that contains a bunch of .txt files that I want to zip, but don't want to zip sub folders that contain .txt files how do I do that?

If I had a sub folder called c:tempbackup that had .txt files too. It zips those too.


Answer

When calling zip.AppendFiles, set the 2nd "recursive" boolean argument to false (0).