Xbasic
UNZIP_FILES Function
Syntax
C unzip_files(C zipfile [,C mask [,C destination_folder [,L preserve_Paths ]]])
Arguments
- zipfileCharacter
The fully qualified name of the Zip file.
- maskCharacter
Default = "*.*". A file specification that selects files within the Zip file. The specification may used wildcards.
- destination_folderCharacter
The target folder to receive the unzipped files.
- preserve_PathsLogical
Default = .F.
.T. = Creates the same subfolder structure under Destination_Folder that the original files had.
.F. = Unzips all files into the Destination_Folder.
Description
Unzips files in a zip file. This high level function is a wrapper around the low level file.unzip() method.
Discussion
UNZIP_FILES() extracts files from Zipfile_Name, that match the Mask specification, to the Destination_Folder. The function is a high level wrapper around the FILE.UNZIP()method.
Example
unzip_files("c:\backup.zip", "*.*", "c:\temp")
UNZIP_FILES does not support extracting password protected zip archives.
See Also