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.
Script to zip files from the command line
Moderators: Dorian (MJT support), JRL, Phil Pendlebury
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact: