HB_UNZIPFILE()
Unzip a compressed file
- Syntax
- HB_UNZIPFILE( <cFile> , <bBlock> ) ---> lCompress
- Arguments
- <cFile> Name of the zip file
- <bBlock> Code block to execute while compressing
- Returns
- <lCompress> .T. if all file was successfuly restored,otherwise .f.
- Description
- This function restores all files contained inside the . If the extension is ommited ,.ZIP will be assumed. If a file already exists, it wlllbe overwriten.
- If is used, every time the file is opened to compress it will do the action specified.
- Examples
- FUNCTION MAIN()
- IF HB_UNZIPFILE( "TEST.ZIP")
- qout("File was successly create")
- ENDIF
- IF HB_ZIPFILE( "TEST2.ZIP",{|cFile|,qout(cFile)})
- qout("File was successly create")
- ENDIF
- Return Nil
- Status
Started
- Compliance
- This function is a Harbour extension
- Platforms
- Win32
- Files
- Library is zlib.lib and zlib_bor.lib For Borland Compilers Library is zlib.lib zlib_ms.lib for MSVC compilers