Project

General

Profile

Zip » History » Version 4

Per Amundsen, 06/28/2017 11:48 PM

1 1 Per Amundsen
_Added in 2.9_
2
3 4 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
18
*Parameters*
19
20
<name> - Name of the zip/unzip operation.
21
<source> - The source file or folder to zip or the source zip file to unzip.
22
<target> - The target zip file to zip to, or the target folder to unzip to.
23
24
*Example*
25
26
<pre>
27
; Zip the entire adiirc folder into 'adiirc.zip'
28
//zip name $qt($adiircdir) adiirc.zip
29
30
; Print the zip result when then zip operation is finished.
31 2 Per Amundsen
on *:ZIP:echo -ag zipped $zip($zip).src into $zip($zip).dest status: $iif($ziperr,fail,ok)
32 1 Per Amundsen
</pre>