In french: zipSélectionFichier
Selects files from an archive. The selected files will be processed by the archive management WLanguage functions..
This makes it possible to select only ".doc" files from an archive, for example. In this case, all the WLanguage functions used to handle the whole archive (e.g., zipExtractAll
) will only affect the selected files (".doc" files in our example).
Archive is zipArchive
// Open an archive
IF zipOpen(Archive, "C:\Archives\Archive.zip") = 0 THEN
// Extract documents only
sPreviousSelection is string = zipSelectFile(Archive, "*.doc")
// Extract all documents from the archive
// Restore previous selection
<Result> = zipSelectFile(<Archive> [, <Selection>])
<Result>: Character string
Previous selection applied to the archive.
<Archive>: Character string or zipArchive variable
Name of the archive to be used.
This name can correspond to:
<Selection>: Optional character string
Generic name of the files to be selected.
Generic characters (* and?) are allowed.
If this parameter is not specified or is set to an empty string (""), the selection will be removed and all files will be processed.
After calling zipSelectFile, the next archive management functions that handle all the files in the archive will take the selection into account: these functions will only manipulate the selected files.
To handle all the files in the archive again, simply call zipSelectFile without specifying the <Selection> parameter.
This page is also available for…