Size: 1208
Comment: Warning added
|
Size: 1595
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 8: | Line 8: |
|| /!\ Unfortunately a bug in 7-zip was discovered that makes it impossible to make use of it || | Note that WinZip issues an error when you pass something like this with the flag to preserve the directory structure: |
Line 10: | Line 10: |
For details see the [[http://aplwiki.com/SevenZip/ProjectPage | project page ]] | {{{ 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 13: | 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 17: | Line 23: |
"SevenZip" suppports the following formats: * 7z * split * zip * gzip * bzip2 * tar |
== Examples == |
Line 25: | 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 28: | 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 36: | Line 40: |
Line 39: | 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: |
|
Responsible: |
|
Email: |