Forum Home
Press F1
 
Thread ID: 51525 2004-11-23 07:05:00 Need help with winzip (9.0) mejobloggs (264) Press F1
Post ID Timestamp Content User
295366 2004-11-23 07:05:00 I am running winzip from a .bat file to backup all the folders listed in a text file.

How can I get winzip to create the zip file with the current date in the file name?

eg backup23Nov04 or something like that. It would be very useful.

Currently I have this

"C:\Program Files\WinZip\wzzip" -en -a+ -r -P -whs -x@nobackup.txt backup.zip @backup.txt

Thanks
mejobloggs (264)
295367 2004-11-24 07:32:00 bump mejobloggs (264)
295368 2004-11-24 08:30:00 Add the following command to your batch file:
set BackupName="Backup %DATE:/=-%.zip"

Then call WinZip passing the filename in the variable %BackupName%. For example: "C:\Program Files\WinZip\wzzip" -en -a+ -r -P -whs -x@nobackup.txt %BackupName% @backup.txt

This works under Win XP, not sure about other OS's.
Tristan Speak (465)
295369 2004-11-24 21:49:00 Thank you so much. mejobloggs (264)
1