If you download the free command line add-on for WinZip it's quite easy:
This is my batch file (the flags insure that only files needing updating
are added (and replaced) and that the folder names are stored to make it
easier to do a restore if necessary. Edit in notepad to reflect where
you want the file stored and the source folder names, and save it with
the extension .bat - then just double click to run it:
rem @echo off
wzzip -u d:\Backup\Psychlinks.zip "C:\Psychlinks\*.*"
wzzip -u -P -r d:\Backup\Psychlinks.zip "C:\Psychlinks\pages\*.*"
wzzip -u -P -r d:\Backup\Psychlinks.zip "C:\Psychlinks\images\*.*"
wzzip -u -P -r d:\Backup\Psychlinks.zip
"C:\Psychlinks\generateditems\*.*"
wzzip -u -P -r d:\Backup\Psychlinks.zip "C:\Psychlinks\buttons\*.*"
wzzip -u -P -r d:\Backup\Psychlinks.zip "C:\Psychlinks\indexbuttons\*.*"
wzzip -u -P -r d:\Backup\Psychlinks.zip "C:\Psychlinks\titlebuttons\*.*"
wzzip -u -P -r d:\Backup\Psychlinks.zip "C:\Psychlinks\_borders\*.*"
wzzip -u -P -r d:\Backup\Psychlinks.zip "C:\Psychlinks\_derived\*.*"
wzzip -u -P -r d:\Backup\Psychlinks.zip "C:\Psychlinks\_private\*.*"
wzzip -u -P -r d:\Backup\Psychlinks.zip
"C:\Psychlinks\_private\pages\*.*"
wzzip -u -P -r d:\Backup\Psychlinks.zip "C:\Psychlinks\media\*.*"
A simpler version would be just to use the top-most directory and
specify to include all subdirectories but this one allows me to specify
which ones I want backed up.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I'm a big fan of the winzip command-line add-on, and use it a lot in
making batch files for copying important files and directories to
other machines that have tape backups each night. (now if microsoft
could only fix the bug in the "scheduled tasks" utility that makes you
have to redo them every time daylight savings time cuts in or out.)
But I'm doing more of this by zipping up files needed for backup and
then creating batch files that ftp them (using the old dos ftp
commands) to other machines across the 'net. But this leads me to a
question that you might have the answer to: am I correct in assuming
that once files are zipped up, then it's a binary transfer?
I've never had a problem ftp'ing files where i didn't specify ascii or
binary, so i'm wondering if it makes any difference.
Larry
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."