• Number of parts required to contain an archive
zipNbPartNeeded (Example)
Number of parts required to contain an archive
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax The following code is used to find out the number of parts required to split a single-part archive into sub-archives of 1.4 MB.
// Declare and initialize the variables
ResArchiveCreation is int
ResSplitArchive is int
NumberNecessaryParts is int
// Create an archive
ResArchiveCreation = zipCreate("MyArchive", "C:\MyArchives\")
// Number of necessary parts
NumberNecessaryParts = zipNbPartNeeded("MyArchive", 1400*1024)
Info("You need " + NumberNecessaryParts + " diskette(s)")
// Split the archive
ResSplitArchive = zipSplit("MyArchive", "A:\ArchiveCopy.WDZ")
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment