Size: 1563
Comment: New version
|
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: |
Note that 7zip issues an error when you pass something like this with the flag to preserve the directory structure: | Note that WinZip issues an error when you pass something like this with the flag to preserve the directory structure: |
Line 15: | Line 15: |
This is a clearly a bug. However, you can easily get around this by executing the command within `C:\My` and this list of files: {{{ folder1\file.txt folder2\file.txt }}} In other words: relative paths are fine, absolute ones are not. Since version 1.1.0 the `SevenZip` class issues in hint if this error occurs and absolute path names are used. |
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 27: | Line 19: |
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 31: | Line 23: |
"SevenZip" suppports the following formats: * 7z * split * zip * gzip * bzip2 * tar |
== Examples == |
Line 39: | 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 42: | 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 50: | Line 40: |
Line 53: | 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: |