newzip
newzip |
Purpose
Create a Zip archive from a list of files.
Synopsis
procedure newzip(opt:integer, zipfile:text, dir:text, lsf:list of text|string, password:text)
procedure newzip(opt:integer, zipfile:text, dir:text, lsf:list of text|string)
procedure newzip(zipfile:text, lsf:list of text|string)
Arguments
opt
|
Options:
|
||||
zipfile
|
File name of the archive
|
||||
dir
|
Base directory (default: current directory)
|
||||
lsf
|
List of files to store in the archive (file names are relative to the
dir directory)
|
||||
password
|
Password to generate en encrypted zip file
|
Example
The following creates an archive of the Xpress installation including only binary files:
findfiles(SYS_RECURS,lsf,getenv("XPRESSDIR"),"bin/*;lib/*;dso/*") newzip(0,"xpress.zip",getenv("XPRESSDIR"),lsf)
Further information
1. This implementation only supports the standard Zip format (only 32bit and basic encryption algorithm).
2. By default file names are represented according the current system encoding in the archive. To select a different encoding use the
enc: file name prefix (see Section
Character encoding of text files) on the archive name (
e.g.
"enc:utf-8,myarc.zip").
Related topics
Module