OdiZip

Usage

OdiZip -DIR=<dir> -FILE=<file> -TOFILE=<dest_file> [-OVERWRITE=<yes|no>] [-RECURSE=<yes|no>] [-CASESENS=<yes|no>] [-ENCODING=<file_name_encoding>]

Description

Creates ZIP files from a directory or several files.

Parameters

Parameters

Mandatory

Description

-DIR=<dir>

Yes

Base directory (or folder) that will be the future root in the ZIP file to generate.

-FILE=<file>

Yes

Path from the base directory of the file(s) to archive. Use * to specify the generic characters.

Examples:

/var/tmp/*.log (All files with the "log" extension of the directory /var/tmp)

arch_*.lst (All the files starting with arch_ and having the extension "lst")

-TOFILE=<dest_file>

Yes

Target ZIP file.

-OVERWRITE=<yes|no>

No

Indicates whether the target zip file must be overwritten (yes) or simply updated if it already exists (no). Default is that the ZIP file is updated if it already exists.

-RECURSE=<yes|no>

No

Indicates if the archiving is recursive in the case of a directory that contains other directories. The value no indicates that only the files contained in the directory to copy (without the sub-folders) will be archived.

-CASESENS=<yes|no>

No

Indicates if file search is case sensitive. By default, Oracle Data Integrator searches files in uppercases.

-ENCODING=<file_name_encoding>

No

Character encoding to use for filenames inside the archive file. For a list of possible values see http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html. Defaults to the platform's default character encoding.

Examples

Creation of an archive of the directory C:\Program files\odi:

OdiZip "-DIR=C:\Program Files\odi" -FILE=*.* -TOFILE=C:\TEMP\odi_archive.zip

 

Creation of an archive of the directory C:\Program files\odi while preserving the odi directory in the archive:

OdiZip "-DIR=C:\Program Files" -FILE=odi\*.* -TOFILE=C:\TEMP\odi_archive.zip