Zip

this object unzip zipped files.

 

Properties

 

init

initialize the object

declare=lzip=ue_api_chilkat=zip
lzip.init

 

destroy

destroy object

openzip=<filename>

open zip file

return value -1=error, 1=ok

declare=lzip=ue_api_chilkat=zip
lzip.init
lzip.openzip=c:\temp\test.zip

unzip=<directory>

unzip the opened file to this directory

return value -1=error, 1=ok

declare=lzip=ue_api_chilkat=zip
lzip.init
lzip.openzip=c:\temp\test.zip
if <value> n> 0 then
   lzip.unzip=c:\temp\testdirectory
end if

unzipfile=<filename>=<todirectory>

Unpack File to direcotory (init + openzip + unzip)

Return value -1=error, 1=ok

simple example:

object=ue_api_chilkat=zip=unzipfile=c:\temp\test.zip=c:\temp\testdirectory

 

unzipwebfile=<url>=<todirectory>

Unpack File from URL to direcotory (init + openzip + unzip)

Return value -1=error, 1=ok

simple example:

object=ue_api_chilkat=zip=unzipfile=http://www.myweb.de/download/test.zip=c:\temp\testdirectory

webzipfile2string=<url>=<filename_in_zipfile>

load the file (url) from web, unzip the filname and get the content from this file and put this in the variable "value"

// load the file test.zip from web
// unzip the file test.txt from test.zip
// get the content from test.txt
// put this in value "value"
object=ue_api_chilkat=zip=webzipfile2string=http://myweb.de/download/test.zip=test.txt
messagebox=<value>

 

 

createzip=toFile=fromFile1,fromFile2,..

Create a Zip-File from one or more Files

You can work with wildcards * and ?

 

object=ue_api_chilkat=zip=createzip=c:\temp\file1.txt=c:\temp\file2.txt