ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Archive functions
  • Principle
  • Reminder
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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).
New in version 2025
WINDEVWEBDEV - Server codeWindowsLinuxiPhone/iPad The gzip format (.gz extension) is now supported.
Example
Archive is zipArchive
// Ouverture d'une archive
IF zipOpen(Archive, "C:\Archives\Archive.zip") = 0 THEN
	// On veut extraire uniquement les documents
	sAncienneSélection is string = zipSelectFile(Archive, "*.doc")
	// Extraction de tous les documents de l'archive
	zipExtractAll(Archive, zipDrive)
	// Restitution de la sélection précédente
	zipSelectFile(Archive, sAncienneSélection)
END
Syntax
<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.
Remarks

Principle

After calling the function zipSelectFile, the next archive management functions handling all the files in the archive will respect the selection: these functions will only handle the specified selection of files..
To handle all the files in the archive again, simply call zipSelectFile without specifying the <Selection> parameter.

Reminder

  • LinuxiPhone/iPadIOS WidgetMac Catalyst Only archives in ZIP, gzip, TAR and TGZ (TAR.GZ) formats are available.
  • AndroidAndroid Widget CAB archives are not available.
Component: wd300zip.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help