Initializing help system before first use

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:
SYS_NODIR 
Do not store directories (only files)
SYS_DIRONLY 
Store only directories
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

© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.