AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Funciones para archivos ZIP, WDZ, CAB, RAR, 7z, TAR, gzip y TGZ (TAR.GZ)
Nota: Estas funciones también están disponibles en la sintaxis con prefijo (Funciones de archivos ZIP, WDZ, CAB, RAR, 7z, TAR, gzip y TGZ (TAR.GZ) (sintaxis con prefijo)).
Novedad versión 2025
WINDEVWEBDEV - Código ServidorWindowsLinuxiPhone/iPad Ahora se admite el formato gzip (extensión .gz).

Las siguientes funciones WLanguage permiten crear y gestionar archivos:
zipAddDirectoryAdds all the files found in a directory and in its subdirectories into an archive and compresses them.
zipAddFileAgrega y comprime automáticamente cualquier tipo de archivo en un archivo CAB, ZIP, WDZ, 7z, TAR, gzip o TGZ (TAR.GZ).
zipAddFileListAgrega y comprime automáticamente una lista de archivos en un archivo ZIP, CAB, WDZ, 7z, TAR, gzip o TGZ (TAR.GZ).
zipChangePathModifies the stored path of a file in an archive (in ZIP, WDZ or 7z format).
zipCloseCloses an archive.
zipCompressionLevelChanges the compression level used when creating an archive in ZIP format or in 7z format.
zipCreateCreates an archive.
zipCreateExeCrea un archivo comprimido autoextraíble como un archivo .EXE de 32 bits.
zipCurrentFileReturns the name of the archived file currently handled by the functions for adding and extracting files.
zipDeleteAllDeletes all files from an archive.
zipDeleteFileDeletes a file from an archive.
zipDeleteFileListDeletes a list of files from an archive.
New in SaaS
zipEndAddingFile
Declara el final de la adición optimizada de una serie de archivos a un archivo comprimido.
Esta nueva función está disponible a partir de WINDEV Suite SaaS 2025 - Update 3.
zipExistDetermines whether an archive exists.
zipExtractAllExtracts all files from an archive and decompresses them.
zipExtractDirectoryAutomatically extracts and decompresses files from a directory in the file tree of an archive to a physical location.
zipExtractFileExtracts a file from an archive and automatically decompresses it to a physical location or in memory.
zipExtractFileListExtracts and decompresses a list of files found in an archive to a physical location.
zipExtractPathDevuelve el ruta de un fichero encontrado en el archivo.
zipFileSizeReturns the size of one of the archive files (in CAB, RAR, WDZ, ZIP, 7z, gzip, TAR or TGZ (TAR.GZ) format):
  • the compressed size of the file.
  • the size of file before compression.
zipFilterReturns the list of archive formats supported by the current platform, in the format expected by the filter of fSelect.
zipFindFileSearch for a file in an archive (CAB, ZIP, RAR, WDZ, 7z, gzip, TAR or TGZ (TAR.GZ) format).
zipInfoFileReturns the characteristics of a file found an archive:
  • The name of the file and its stored path.
  • The initial size of the file.
  • The compressed size of file.
  • The date and time of file creation.
  • The date and time of file modification.
  • The date and time of file access.
  • The file attributes.
  • The file encryption mode.
zipIsMultiReturns the type of the archive: single-part archive or multi-part archive.
zipListFileReturns the list of files found in an archive.
zipMergeMerges the different sub-archives found in a multi-part archive to create a single-part archive.
zipMsgErrorReturns the message associated with an error code on an archive.
zipNbFileReturns the number of files found in an archive (in CAB, RAR, ZIP, WDZ or 7z format).
zipNbPartReturns the number of sub-archives (parts) of an archive in CAB, RAR, ZIP, WDZ, 7z, gzip, TAR or TGZ (TAR.GZ) format.
zipNbPartNeededReturns the number of parts of a given size required to split a single-part archive.
zipOpenOpens an existing archive.
zipOpenCABOpens an existing archive in CAB format.
zipOpenRAROpens an existing archive in RAR format.
zipPasswordDefines the password used to add files to the specified archive and to extract files from the specified archive (RAR, ZIP and WDZ format).
zipSelectFileSelects files from an archive.
zipSizeReturns the size of the archive (in ZIP, RAR, CAB, WDZ, 7z, gzip, TAR or TGZ (TAR.GZ) format):
  • the size of all compressed files found in the archive.
  • the size of all files found in the archive before compression.
zipSplitSplits an archive into several sub-archives of a given size.
Declara el inicio de la adición optimizada de una serie de archivos a un archivo CAB, ZIP, WDZ, 7z, TAR, gzip o TGZ (TAR.GZ).
Esta nueva función está disponible a partir de WINDEV Suite SaaS 2025 - Update 3.
Nota: Las funciones de archivos comprimidos pueden utilizarse en un subproceso sin bloquear otros subprocesos durante la ejecución.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/05/2025

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