Zip » History » Version 2
Per Amundsen, 06/28/2017 11:19 PM
| 1 | 1 | Per Amundsen | _Added in 2.9_ |
|---|---|---|---|
| 2 | |||
| 3 | */zip [-oculN] <name> <source> <target>" |
||
| 4 | |||
| 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 | *Switches* |
||
| 10 | |||
| 11 | -o - Ovwrwrite the target zip file if it exists. |
||
| 12 | -c - Aborts the zip/unzip operation. |
||
| 13 | -u - Unzip instead of zip. |
||
| 14 | -lN - Use compression method N, 0 = no compression, 1 = fastest compression, 2 = optimal compression. |
||
| 15 | |||
| 16 | *Parameters* |
||
| 17 | |||
| 18 | <name> - Name of the zip/unzip operation. |
||
| 19 | <source> - The source file or folder to zip or the source zip file to unzip. |
||
| 20 | <target> - The target zip file to zip to, or the target folder to unzip to. |
||
| 21 | |||
| 22 | *Example* |
||
| 23 | |||
| 24 | <pre> |
||
| 25 | ; Zip the entire adiirc folder into 'adiirc.zip' |
||
| 26 | //zip name $qt($adiircdir) adiirc.zip |
||
| 27 | |||
| 28 | ; Print the zip result when then zip operation is finished. |
||
| 29 | 2 | Per Amundsen | on *:ZIP:echo -ag zipped $zip($zip).src into $zip($zip).dest status: $iif($ziperr,fail,ok) |
| 30 | 1 | Per Amundsen | </pre> |