PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Splitting an archive
  • Multi-part archive
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the number of parts of a given size required to split a single-part archive.
Note: This function is available for the archives in ZIP and WDZ format only.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEVWEBDEV - Server codeReports and QueriesAjaxUser code (UMC)
// Open an archive
ResOpenArchive = zipOpen("MyArchive", "C:\MyArchives\Archive.zip")
IF ResOpenArchive = 0 THEN
...
// Number of parts (1.4 MB) required to contain the archive
ResNbNecessaryParts = zipNbPartNeeded("MyArchive", 1400*1024)
Info("To split this archive, " + ResNbNecessaryParts + " part(s) of 1.4 MB are required")
...
END
Windows Mobile
// Open an archive
ResOpenArchive = zipOpen("MyArchive", "\MyArchives\Archive.zip")
IF ResOpenArchive = 0 THEN
...
// Number of parts (1.4 MB) required to contain the archive
ResNbNecessaryParts = zipNbPartNeeded("MyArchive", 1400*1024)
Info("To split this archive, " + ResNbNecessaryParts + " part(s) of 1.4 MB are required")
...
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 (with quotes) or zipArchive variable
Name of archive to use.
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 find out the number of supports (diskettes for example) required to split the archive.

Multi-part archive

Using zipNbPartNeeded on a multi-part archive is used to calculate the number of parts required for a new split.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230zip.dll
Windows Mobile wp230zip.dll
Linux wd230zip.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment