Suppose we have the following files on a given drive mapped to H:
H:\
----------DATA\
--------------------BACKUPS\
------------------------------DOCS\
----------------------------------------DOC1.DOC
----------------------------------------DOC2.DOC
----------------------------------------DOC3.PDF
----------------------------------------DOC4.TXT
------------------------------PICS\
----------------------------------------PIC1.BMP
----------------------------------------PIC2.BMP
----------------------------------------PIC3.GIF
----------------------------------------PIC4.JPEG
------------------------------JUNK\
----------------------------------------ERASE.ME
ROOT.TXT
To zip all files on drive H:\, and all subfolders, set FilesToProcess to:
XceedZip1.FilesToProcess = "H:\*"
To zip all ".TXT" files on drive H:\, and all subfolders, set FilesToProcess to:
XceedZip1.FilesToProcess = "H:\*.TXT"
To zip all files in the H:\DATA folder, and all subfolders, set FilesToProcess to:
XceedZip1.FilesToProcess = "H:\DATA\*"
To zip all files in the H:\DATA folder, but not in its subfolders (like H:\DATA\BACKUPS, H:\DATA\BACKUPS\DOCS and H:\DATA\BACKUPS\PICS), set ProcessSubfolders and FilesToProcess to:
XceedZip1.ProcessSubfolders = FALSE
XceedZip1.FilesToProcess = "H:\DATA\*"
Keep in mind that with the help of the FilesToExclude property, you can perform more complex wildcard processing. Check out the example for FilesToExclude.