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
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the size of one of the archive files (in CAB, RAR, WDZ, ZIP, 7z, gzip, TAR or TGZ (TAR.GZ) format):
  • the size of compressed file.
  • the size of file before compression.
When extracting a file from an archive, we recommend that you compare the decompressed size of the file with the available disk space.
Reminder:
  • LinuxiPhone/iPadIOS WidgetMac Catalyst Only archives in ZIP, gzip, TAR and TGZ (TAR.GZ) formats are available.
  • AndroidAndroid Widget Java Only ZIP archives are available.
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax
MonArchive is zipArchive
// Ouverture d'une archive
ResOuvreArchive = zipOpen(MonArchive, "C:\MesArchives\Archive.zip")

// Taille de "Fichier.txt"
IF ResOuvreArchive = 0 THEN
	ResTailleFichier = zipFileSize(MonArchive, "Fichier.txt")
	...
END
Syntax

Finding out the size of a file identified by its index Hide the details

<Result> = zipFileSize(<Archive> , <File index> [, <Type of size>])
<Result>: Integer
Size of specified file.
<Archive>: Character string or zipArchive variable
Name of the archive to be used.
This name can correspond to:
<File index>: Integer
Index of file whose size must be calculated. zipFindFile returns this index.
<Type of size>: Optional boolean
Type of calculation for the file size:
  • True: Size of compressed file.
  • False (default value): File size before compression.

Finding out the size of a file identified by its path Hide the details

<Result> = zipFileSize(<Archive> , <File path> [, <Type of size>])
<Result>: Integer
Size of specified file.
<Archive>: Character string or zipArchive variable
Name of the archive to be used.
This name can correspond to:
<File path>: Integer
Stored path of file whose size must be calculated.
<Type of size>: Optional boolean
Type of calculation for the file size:
  • True: Size of compressed file.
  • False (default value): File size before compression.
Component: wd300zip.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help