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
  • Splitting an archive
  • Multi-part archive
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the number of parts of a given size required to split a single-part archive.
Note: This function is only available for archives in ZIP and WDZ format.
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax
MonArchive is zipArchive
// Ouverture d'une archive
ResOuvreArchive = zipOpen(MonArchive, "C:\MesArchives\Archive.zip")

IF ResOuvreArchive = 0 THEN
	...
	// Nombre de parties de 1,4 Mo nécessaires pour contenir l'archive
	ResNbPartieNécessaire = zipNbPartNeeded(MonArchive, 1400*1024)
	Info("Pour découper cette archive, " + ResNbPartieNécessaire + ...
				" partie(s) de 1,4 Mo sont nécessaires")
	...
END
Syntax
<Result> = zipNbPartNeeded(<Archive> , <Size of parts>)
<Result>: Integer
Number of parts of a given size required to contain an archive.
<Archive>: Character string or zipArchive variable
Name of the archive to be used.
This name can correspond to:
<Size of parts>: Integer
Size of parts in bytes. The default size is equal to 1.44 MB (1400*1024 bytes). The minimum size is equal to 300 KB for each part (300*1024 bytes).
Remarks

Splitting an archive

A multi-part archive is created by zipSplit. zipNbPartNeeded is used to determine the number of parts required to split the archive.

Multi-part archive

Using zipNbPartNeeded on a multi-part archive allows you to calculate the number of parts required for a new splitting.
Business / UI classification: Business Logic
Component: wd300zip.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help