Zip » History » Revision 2
« Previous |
Revision 2/8
(diff)
| Next »
Per Amundsen, 06/28/2017 11:19 PM
Added in 2.9
*/zip [-oculN] <name> <source> <target>"
Zips a file or folder into a zip file or unzips a zip file into a folder.
See also $zip, $ziperr, on ZIP, on UNZIP.
Switches
-o - Ovwrwrite the target zip file if it exists.
-c - Aborts the zip/unzip operation.
-u - Unzip instead of zip.
-lN - Use compression method N, 0 = no compression, 1 = fastest compression, 2 = optimal compression.
Parameters
<name> - Name of the zip/unzip operation.
<source> - The source file or folder to zip or the source zip file to unzip.
<target> - The target zip file to zip to, or the target folder to unzip to.
Example
; Zip the entire adiirc folder into 'adiirc.zip' //zip name $qt($adiircdir) adiirc.zip ; Print the zip result when then zip operation is finished. on *:ZIP:echo -ag zipped $zip($zip).src into $zip($zip).dest status: $iif($ziperr,fail,ok)
Updated by Per Amundsen over 7 years ago · 2 revisions