Differences between revisions 58 and 62 (spanning 4 versions)
Revision 58 as of 2011-08-31 20:55:41
Size: 1006
Editor: KaiJaeger
Comment:
Revision 62 as of 2014-10-13 18:01:15
Size: 1595
Editor: KaiJaeger
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= SevenZip =
{{{SevenZip}}} is part of the CategoryAplTree project.
= WinZip =
`WinZip` is part of the CategoryAplTree project.
Line 6: Line 6:
== 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.
Line 7: Line 18:
The class "SevenZip" relies on an installed version of the Open Source zipper [[http://www.7-zip.org/ | 7zip]].
The class "WinZip" relies on an installed version of [[http://winzip.com/win/en/index.htm |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.
Line 11: Line 23:
"SevenZip" suppports the following formats:
 * 7z
 * split
 * zip
 * gzip
 * bzip2
 * tar
== Examples ==
Line 19: Line 25:
You can either specify an appropriate extension or set the "type" property in order to enforce a certain format. 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\:
Line 22: Line 38:
      myZipper←⎕new #.SevenZip (,⊂'MyZipFile')
      ⎕←myZipper
[SevenZip@MyZipFile]
      myZipper.Add 'foo.txt'
      ⎕←myZipper.List 0
foo.txt
myZipper.Unzip 'c:\output\'
 (rc more)←#.WinZip.Extract 'C:\MyZip.zip' 'C:\MyUnzippedFiles\'
Line 30: Line 40:
Line 33: Line 44:
For bug reports, future enhancements and a full version history see SevenZip/ProjectPage For bug reports, future enhancements and a full version history see WinZip/ProjectPage

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

WinZip (last edited 2016-09-13 15:27:22 by KaiJaeger)