ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Archive functions
  • Deleting all the files from an archive
zipDeleteAll (Example)
Deleting all the files from an archive
WINDEVWEBDEV - Server codeWindowsJavaAjax The following code is used to delete all the files from an archive.
// Declare and initialize the variables
ArchiveName is string = "MyArchive"
ErrorCodeOpen is int
ErrorCodeDel is int
 
// Open an archive
ErrorCodeOpen = zipOpen(ArchiveName, "C:\Directory\Archives\ArchivePdf.zip")
 
IF ErrorCodeOpen = 0 THEN
// Delete all the files
ErrorCodeDel = zipDeleteAll(ArchiveName)
IF ErrorCodeDel <> 0 THEN
Error(zipMsgError(ErrorCodeDel))
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