X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?ISO-8859-1?Q?Ren=E9_Berber?= Subject: Re: Adding to a windows zip file without zip.exe Date: Wed, 16 May 2007 15:29:49 -0500 Lines: 39 Message-ID: References: <10653042 DOT post AT talk DOT nabble DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <10653042.post@talk.nabble.com> OpenPGP: url=hkp://wwwkeys.pgp.net X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Chadwick wrote: > Cygwin is currently installed on over a hundred windows 2003 servers, and= is > used to do some admin tasks as well as to pull files from the servers on a > daily basis via ssh. One of the files pulled from each server is a windo= ws > ZIP file. >=20 > I want to add an extra file to this ZIP file using a script. I looked at > both DOS batch scripts and cygwin shell scripts but have run into problems > because the cygwin installed on these boxes doesnt contain ZIP.exe, and t= he > PKZIP.exe I would used with a batch script is so old it only accepts 8.3 > filenames. >=20 > Updating the servers with new cygwin or command line packages is not an > option at this point. [snip] > Any suggestions? Use java, specifically `jar` which is just a fancy unzip-then-call-java thi= ngy,=20 and it also does just work as zip (with tar like use). Just do: jar -h jar -tvf your.zip jar -cvf another.zip files... Remember to use only DOS/Windows paths. --=20 Ren=E9 Berber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/