Unzips a Zip file into a directory on disk.
This method call talks directly to the DLL bypassing the ActiveX Control.
Dependencies:
Requires dunzip32.dll in FoxPro or Windows Path
UnzipFiles(lcZipFile, lcDestination, lcFileSpec, llDontRecurse)
Return Value
0 on success - DynaZip error code for failure.
Parameters
lcZipFile
Zip File to unzip from
lcDestination
Path where files are to be unzipped.
lcFileSpec
File spec of files to be unzipped. Can include file paths.
llDontRecurse
File spec of files to be unzipped. Can include file paths.
Remarks
This is library function not a method of the wwAPI class
Example
*** Unzip all files to folder including folder structure
UnZipFiles("c:\temp\zippedFiles.zip","c:\temp\unzipped")
*** Unzip only .txt files and don't extract from subfolders
UnZipFiles("c:\temp\zippedFiles.zip","c:\temp\unzipped","*.txt",.F.)
See also:
Class wwHTTP© West Wind Technologies, 2004-2017 • Updated: 08/25/12
Comment or report problem with topic