AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos
  • Creating an archive
zipCreate (Example)
Creating an archive
WINDEVWEBDEV - Código ServidorAjax
The following code is used to create an archive. The name of the archive is entered in an edit control: EDT_ArchiveName. The directory path is selected with fSelectDir.
// Declare and initialize the variables
ArchiveName is string
ArchivePath is string
ResArchiveCreation is int
 
// Select the name of the archive. EDT_ArchiveName is edit control
ArchiveName = EDT_ArchiveName
 
// Select the path of the archive
ArchivePath = fSelectDir("", "", "Selecting the directory")
 
// Create the "ArchiveName" archive
ResCreateArchive = zipCreate(ArchiveName, ...
CompleteDir(ArchivePath) + ArchiveName)
 
// Display an error message if the creation was not performed
IF ResArchiveCreation <> 0 THEN
Error(zipMsgError(ResArchiveCreation))
END
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local