Mail Archives: djgpp/1998/01/26/01:22:53
At 12:07 1/25/1998 GMT, Myknees wrote:
>A while ago, I went through a small amount of heck to figure out how to exclude
>certain files from a zip file when using InfoZip. Since then, I forgot! Now I
>can't re-figure it out.
>
>I'm trying to exclude certain types of files, using InfoZip from a batch file
>like this:
>
>@echo off
>call zip c:\trash\test.zip c:\trash\sounds\* -x *.wav *.au
>
>But none of the variants have worked, and I can't find any clues in the docs.
>Anyone know how to do this?
Quote the filespecs you wish to exclude. Otherwise, DJGPP's globbing
features expand the wildcards before zip sees them. i.e.:
# Zip everything except backups
zip archive.zip * -x "*.bak"
Nate Eldredge
eldredge AT ap DOT net
- Raw text -