Zip » History » Revision 7
Revision 6 (Per Amundsen, 08/01/2017 07:01 PM) → Revision 7/8 (Per Amundsen, 01/17/2019 08:36 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]]._ _Only available with .NET 4.5+_ *Switches* -o - Overwrites the target zip file if it exists or overwrites existing files in the target unzip folder. -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. -i - Prints the open zip operations, if combined with -u prints the open unzip operations. *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* <pre> ; 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:name:echo *:ZIP:echo -ag zipped $zip($zip).src into $zip($zip).dest status: $iif($ziperr,fail,ok) </pre>