zip <file> {,<srcfile> ...}
Create a zip archive.
<file>
The zip file to be created. Typically this should have a .zip file extension.
<srcfile>
A file to be added to the archive. This can be a literal file name or a
string value whose value is a file name. Wildcard names are permitted. A
file name can be a directory name, in which case all files within the directory
are added to the archive. All file names are assumed to be relative to
the current working directory.
-if=<file>
A text file containing files to be added to the archive. Each line of <file>
should contain one file name, directory name or wildcard name. The names
should not be quoted.
-is=<string_array>
An array of string values. Each element of the array should contain one
file name, directory name or wildcard name.
Care should taken to avoid wildcard archiving where the destination zip file may satsify the wildcard.
Create a zip archive from a list of files and the contents of a directory.
string curdir=current_dir cd c:/temp zip myzip.zip, file1.txt, file2.txt, mydir cd curdir
Commands: