ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Archive functions
  • Merging the sub-archives found in a multi-part archive
zipMerge (Example)
Merging the sub-archives found in a multi-part archive
WINDEVWEBDEV - Server codeAjax The following code is used to merge the sub-archives of a multi-part archive. zipIsMulti is used to check whether the archive is a multi-part archive.
// Declare and initialize the variables
ErrorCodeOpen is int
ErrorCodeMerge is int
IsMulti is boolean
 
// Open an archive
ErrorCodeOpen = zipOpen("MyArchive", "A:\MyArchive.zip")
 
IF ErrorCodeOpen = 0 THEN
// Is the archive a multi-part archive?
IsMulti = zipIsMulti("MyArchive")
// Merge the archive
ErrorCodeMerge = zipMerge("MyArchive", "C:\MyArchives\ArchiveMulti.WDZ")
// Error message if the sub-archives have not been merged
IF ErrorCodeMerge <> 0 THEN
Error(zipMsgError(ErrorCodeMerge))
END
ELSE
Error(zipMsgError(ErrorCodeOpen))
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help