That probably depends on the ZIPping utility.
The standard 7zip commandline tool, has both filetype include and exclude switches, which do exactly what you want:
From the man page:
Code:
-i[r[-|0]]{@listfile|!wildcard}
Include filenames
-x[r[-|0]]]{@listfile|!wildcard}
Exclude filenames
@RacinReaver: That obviously won't work, since it (the copy command) doesn't see subdirectories in YourFolder. Also it duplicates files first, which you have to delete afterwards. Which is turn leads to more fragmentation. Don't do it that way.
@neothe0ne: If your ZIPping utility can't do it, then don't use it. It should already be deprecated. 7Zip can also create plain ZIP files, if you really need that. I'm not sure about the Windows GUI, but probably the functionality is already exported there - so you don't have to do it via commandline.
Jam it back in, in the dark.