How to move files into an zip archive from a batfile

archivebatch-file

I think the header explain the question.
I want to do inside a bat-file:

zip /a /m myfile.log myarchive.zip

where I just invented the zip comand and the options:
/a add file
/m Move file

It is run on Windows Server 2003.

Best Answer

you need to use an actual implementation of a zip program. take a look at gzip, bzip or 7zip. Each program will have different command line switches