Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WinZip command line

Status
Not open for further replies.

sirlance

MIS
Sep 17, 2002
36
US
I need some help setting up a command line batch file that will zip a directory, but append files that haven't changed. I'm using it as a cheap backup plan.

So far, I've been able to test this out successfully:
"C:\Program Files\WinZip\WZZIP" -u "C:\test\test1.zip"


It creates a zip file called test1.zip (if it doesn't exist already). Files are added to this zip file as new (or changed) or appended if old.
My problem is that it zipped all file on my desktop (where the batch file is located), but I wanted to direct it to a spcecific directory, for example: C:\data. I also wanted to be able to add more than one directory to the same zip file that is not located in the same location (E:\moredata).

Lastly (more of a bonus), I want the zip file moved to a newtork drive and overwrite the existing zip file.

Thanks for any help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top