|
|
|
|
|
|
Category: Archive functions |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Adds all the files found in a directory and in its subdirectories into an archive and compresses them. |
|
|
|
|
|
|
Automatically adds and compresses any type of file into a CAB, ZIP, WDZ, 7z, TAR, gzip or TGZ (TAR.GZ) archive. |
|
|
|
|
|
|
Automatically adds and compresses a list of files into a ZIP, CAB, WDZ, 7z, TAR, gzip or TGZ (TAR.GZ) archive. |
|
|
|
|
|
|
Modifies the stored path of a file in an archive (in ZIP, WDZ or 7z format). |
|
|
|
|
|
|
Creates a self-extracting archive as a 32-bit executable (.EXE). |
|
|
|
|
|
|
Returns the name of the archived file currently handled by the functions for adding and extracting files. |
|
|
|
|
|
|
Deletes all files from an archive. |
|
|
|
|
|
|
Deletes a file from an archive. |
|
|
|
|
|
|
Deletes a list of files from an archive. |
|
|
|
|
|
|
Declares the end of the optimized addition of a series of files to an archive. This new function is available from WINDEV Suite SaaS 2025 - Update 3. |
|
|
|
|
|
|
Determines whether an archive exists. |
|
|
|
|
|
|
Extracts all files from an archive and decompresses them. |
|
|
|
|
|
|
Automatically extracts and decompresses files from a directory in the file tree of an archive to a physical location. |
|
|
|
|
|
|
Extracts a file from an archive and automatically decompresses it to a physical location or in memory. |
|
|
|
|
|
|
Extracts and decompresses a list of files found in an archive to a physical location. |
|
|
|
|
|
|
Returns the path of a file found in the archive. |
|
|
|
|
|
|
Returns 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.
|
|
|
|
|
|
|
Search for a file in an archive (CAB, ZIP, RAR, WDZ, 7z, gzip, TAR or TGZ (TAR.GZ) format). |
|
|
|
|
|
|
Returns 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.
|
|
|
|
|
|
|
Returns the type of the archive: single-part archive or multi-part archive. |
|
|
|
|
|
|
Returns the list of files found in an archive. |
|
|
|
|
|
|
Merges the different sub-archives found in a multi-part archive to create a single-part archive. |
|
|
|
|
|
|
Returns the number of parts of a given size required to split a single-part archive. |
|
|
|
|
|
|
Opens an existing archive. |
|
|
|
|
|
|
Opens an existing archive in CAB format. |
|
|
|
|
|
|
Opens an existing archive in RAR format. |
|
|
|
|
|
|
Splits an archive into several sub-archives of a given size. |
|
|
|
|
|
|
Declares the start of the optimized addition of files to a CAB, ZIP, WDZ, 7z, TAR, gzip or TGZ (TAR.GZ) archive. This new function is available from WINDEV Suite SaaS 2025 - Update 3. |
|
|
|
|
|
|
Selects files from an archive. |
|
|
|
|
|
|
List of constants used by the archiving functions. |
|
|
|
|
|
|
Archiving functions (ZIP, WDZ, CAB, RAR, 7z, TAR, gzip and TGZ (TAR.GZ)) |
|
|
|
|
|
|
Archiving functions (ZIP, WDZ, CAB, RAR, 7z, TAR, gzip and TGZ (TAR.GZ)) |
|
|
|
|
|
|
WINDEV, WEBDEV and WINDEV Mobile propose several WLanguage functions allowing you to compress and merge your files into archives... |
|
|
|
|
|
|
Two types of archives are available... |
|
|
|
|
|
|
Usage example of the zipAddDirectory function |
|
|
|
|
|
|
Adds all the files found in a directory and in its subdirectories into an archive and compresses them. |
|
|
|
|
|
|
Automatically adds and compresses any type of file into a CAB, ZIP, WDZ, 7z, TAR, gzip or TGZ (TAR.GZ) archive. |
|
|
|
|
|
|
Automatically adds and compresses a list of files into a ZIP, CAB, WDZ, 7z, TAR, gzip or TGZ (TAR.GZ) archive. |
|
|
|
|
|
|
The type zipArchive type is used to manipulate an archive file corresponding to one of the following formats: ZIP, CAB, RAR, WDZ, 7z, TAR, gzip or TGZ (TAR.GZ). |
|
|
|
|
|
|
The zipArchivedFile type is used to handle: - a file contained in an archive corresponding to one of the following formats: ZIP, CAB, RAR, WDZ, 7z, TAR, gzip or TGZ (TAR.GZ).
- a file to add into an archive.
|
|
|
|
|
|
|
Modifies the stored path of a file in an archive (in ZIP, WDZ or 7z format). |
|
|
|
|
|
|
Changes the compression level used when creating an archive in ZIP format or in 7z format. |
|
|
|
|
|
|
Usage example of the zipCreate function |
|
|
|
|
|
|
Usage example of the zipCreateExe function |
|
|
|
|
|
|
Creates a self-extracting archive as a 32-bit executable (.EXE). |
|
|
|
|
|
|
Returns the name of the archived file currently handled by the functions for adding and extracting files. |
|
|
|
|
|
|
Usage example of the zipDeleteAll function |
|
|
|
|
|
|
Deletes all files from an archive. |
|
|
|
|
|
|
Usage example of the zipDeleteFile function |
|
|
|
|
|
|
Deletes a file from an archive. |
|
|
|
|
|
|
Deletes a list of files from an archive. |
|
|
|
|
|
|
Declares the end of the optimized addition of a series of files to an archive. This new function is available from WINDEV Suite SaaS 2025 - Update 3. |
|
|
|
|
|
|
The zipExeCreationParameter type is used to define all the information needed to create a self-extracting archive (.EXE file). This new variable type is available from WINDEV Suite SaaS 2025 Update 3. |
|
|
|
|
|
|
Determines whether an archive exists. |
|
|
|
|
|
|
Extracts all files from an archive and decompresses them. |
|
|
|
|
|
|
Automatically extracts and decompresses files from a directory in the file tree of an archive to a physical location. |
|
|
|
|
|
|
Usage example of the zipExtractFile function |
|
|
|
|
|
|
Extracts a file from an archive and automatically decompresses it to a physical location or in memory. |
|
|
|
|
|
|
Extracts and decompresses a list of files found in an archive to a physical location. |
|
|
|
|
|
|
Usage example of the zipExtractPath function |
|
|
|
|
|
|
Returns the path of a file found in the archive. |
|
|
|
|
|
|
Returns 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.
|
|
|
|
|
|
|
Returns the list of archive formats supported by the current platform, in the format expected by the filter of fSelect. |
|
|
|
|
|
|
Search for a file in an archive (CAB, ZIP, RAR, WDZ, 7z, gzip, TAR or TGZ (TAR.GZ) format). |
|
|
|
|
|
|
Returns 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.
|
|
|
|
|
|
|
Usage example of the zipIsMulti function |
|
|
|
|
|
|
Returns the type of the archive: single-part archive or multi-part archive. |
|
|
|
|
|
|
Usage example of the zipListFile function |
|
|
|
|
|
|
Returns the list of files found in an archive. |
|
|
|
|
|
|
Merges the different sub-archives found in a multi-part archive to create a single-part archive. |
|
|
|
|
|
|
Returns the message associated with an error code on an archive. |
|
|
|
|
|
|
Usage example of the zipNbFile function |
|
|
|
|
|
|
Returns the number of files found in an archive (in CAB, RAR, ZIP, WDZ or 7z format). |
|
|
|
|
|
|
Usage example of the zipNbPart function |
|
|
|
|
|
|
Returns the number of sub-archives (parts) of an archive in CAB, RAR, ZIP, WDZ, 7z, gzip, TAR or TGZ (TAR.GZ) format. |
|
|
|
|
|
|
Usage example of the zipNbPartNeeded function |
|
|
|
|
|
|
Returns the number of parts of a given size required to split a single-part archive. |
|
|
|
|
|
|
Opens an existing archive. |
|
|
|
|
|
|
Opens an existing archive in CAB format. |
|
|
|
|
|
|
Opens an existing archive in RAR format. |
|
|
|
|
|
|
Defines the password used to add files to the specified archive and to extract files from the specified archive (RAR, ZIP and WDZ format). |
|
|
|
|
|
|
Selects files from an archive. |
|
|
|
|
|
|
Returns 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.
|
|
|
|
|
|
|
Splits an archive into several sub-archives of a given size. |
|
|
|
|
|
|
Declares the start of the optimized addition of files to a CAB, ZIP, WDZ, 7z, TAR, gzip or TGZ (TAR.GZ) archive. This new function is available from WINDEV Suite SaaS 2025 - Update 3. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|