Script to zip files from the command line

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

Post Reply
User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Script to zip files from the command line

Post by Marcus Tettmar » Sat Oct 17, 1998 11:00 pm

Contributed By: Bob Williams [email protected]
Submitted On: 18/10/98

I'm using wzzip.exe, the (beta) command line add-on to Winzip 7.0 but I'm sure it would work equally well with pkzip. The purpose is to zip all the data files in the documents directory, adding new or changed files each time the macro is run.

Run Program>wzzip -p -r -u -ybc -yp c:\zipfiles\ackup\document.zip c:\docume~1\*.*
FindWindowWithText>press any key to continue,1,window_name,0
Send Character/Text>

The FindWindowWithText command neatly circumvents the need to issue a Wait> of unknown duration.

The apparently empty Send Character/Text> actually ends in a space, but it could be any character, or you could use Press Enter.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts