Date: Sun, 25 Jan 1998 22:22:25 -0800 (PST) Message-Id: <199801260622.WAA01635@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: myknees AT aol DOT com (Myknees), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Excluding files when using InfoZip (zip 2.0.1) Precedence: bulk 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