Zip » History » Version 6
Per Amundsen, 08/01/2017 07:01 PM
| 1 | 1 | Per Amundsen | _Added in 2.9_ |
|---|---|---|---|
| 2 | |||
| 3 | 5 | Per Amundsen | */zip [-oculN] <name> <source> <target>* |
| 4 | 1 | Per Amundsen | |
| 5 | Zips a file or folder into a zip file or unzips a zip file into a folder. |
||
| 6 | |||
| 7 | _See also [[$zip]], [[$ziperr]], [[on ZIP]], [[on UNZIP]]._ |
||
| 8 | |||
| 9 | 3 | Per Amundsen | _Only available with .NET 4.5+_ |
| 10 | |||
| 11 | 1 | Per Amundsen | *Switches* |
| 12 | |||
| 13 | 3 | Per Amundsen | -o - Overwrites the target zip file if it exists or overwrites existing files in the target unzip folder. |
| 14 | 1 | Per Amundsen | -c - Aborts the zip/unzip operation. |
| 15 | -u - Unzip instead of zip. |
||
| 16 | -lN - Use compression method N, 0 = no compression, 1 = fastest compression, 2 = optimal compression. |
||
| 17 | 6 | Per Amundsen | -i - Prints the open zip operations, if combined with -u prints the open unzip operations. |
| 18 | 1 | Per Amundsen | |
| 19 | *Parameters* |
||
| 20 | |||
| 21 | <name> - Name of the zip/unzip operation. |
||
| 22 | <source> - The source file or folder to zip or the source zip file to unzip. |
||
| 23 | <target> - The target zip file to zip to, or the target folder to unzip to. |
||
| 24 | |||
| 25 | *Example* |
||
| 26 | |||
| 27 | <pre> |
||
| 28 | ; Zip the entire adiirc folder into 'adiirc.zip' |
||
| 29 | //zip name $qt($adiircdir) adiirc.zip |
||
| 30 | |||
| 31 | ; Print the zip result when then zip operation is finished. |
||
| 32 | 2 | Per Amundsen | on *:ZIP:echo -ag zipped $zip($zip).src into $zip($zip).dest status: $iif($ziperr,fail,ok) |
| 33 | 1 | Per Amundsen | </pre> |