WinZip

WinZip is part of the CategoryAplTree project.

Warning

Note that WinZip issues an error when you pass something like this with the flag to preserve the directory structure:

C:\My\folder1\file.txt
C:\My\folder2\file.txt

According to the company behind WinZip this is nit a bug but by design. Therefore WinZip will issue a DOMAIN ERROR if you have to files with the same name in your list of files to be zipped.

Overview

The class "WinZip" relies on an installed version of WinZip and the command line extension. If both are installed on your machine then will will have the two executables WZZIP.EXE (for zipping) and WZUNZIP.EXE (for unzipping) somewhere, typically in C:\Program Files (x86)\WinZip.

The class makes it very easy to zip as well as unzip stuff.

Examples

Zip all files in C:\MyFolder\ recursively into myZipFile.zip:

 (rc more)←#.WinZip.Create 'C:\MyFolder\*' 'myZipFile.zip'

Zip two files nto myZipFile.zip:

(rc more)←#.WinZip.Create ('C:\file1' 'C:\file2') 'C:\MyZipFile'

Unpack C:\MyZip.zip into C:\MyUnzippedFiles\:

 (rc more)←#.WinZip.Extract 'C:\MyZip.zip' 'C:\MyUnzippedFiles\'

Project Page

For bug reports, future enhancements and a full version history see WinZip/ProjectPage

Version Information

Original author:

KaiJaeger

Responsible:

KaiJaeger

Email:

kai@aplteam.com


CategoryAplTree