Adding directory with exceptions

Aug 27, 2013 at 9:04 AM
How can I add a directory and all files in it to the zip archive but exclude a file or folder inside the parent directory? For example:

mydirectory
-- subdir1
-- subdir2
-- file1
-- file2
-- ...
-- ...

I want to add mydirectory and all files and directories in it except 'subdir1'. I tried AddSelectedFiles in different ways but none worked. How can I achieve this?