|
|
|
|
|
- Overview
- Handling the archives
- Type of archives
- Examples
WINDEV, WEBDEV and WINDEV Mobile propose several WLanguage functions allowing you to compress and merge your files into archives. An archive is a physical file: - whose type is ".WDZ" for a WINDEV, WEBDEV or WINDEV Mobile archive.
- whose type is ".ZIP" for a WinZip or PKZip archive.
- whose type is ".CAB" for a "Cabinet Files" archive.
- whose type is ".RAR".
- whose type is ".7z".
- whose type is ".tar" or ".tgz" (".tar.gz").
New in version 2025type ".gz".
This file contains automatically compressed files of all types (".pdf", ".fic", ".mmo", etc.). For example, the archives allow you to: - save your files on a regular basis while reducing the storage space,
- simplify the transmission of your files on Internet/Intranet,
- create self-extracting archives,
- etc.
Thanks to optimized compression, your files take up less disk space and can be easily transmitted on different media (CD, Internet, etc.). Two types of archives are available: New in version 2025To manage your archives, WINDEV, WEBDEV and WINDEV Mobile propose several WLanguage functions. These functions are used to: - manipulate archives: creation, opening, closing.
- manipulate archive files: add and compress files (single files or a set of files in a directory), extract and decompress a file, delete files from an archive.
- get various information on archives and compressed files: size before and after compression, ...
- split and/or merge archive volumes.
- create self-extracting archives.
Type of archives - The ".WDZ" archives are available in WINDEV and WEBDEV.
- ZIP archives (WinZip or PKZip) are available for WINDEV , WEBDEV, WINDEV Mobile, Java and Linux.
- The archives of type ".CAB" ("Cabinet files") are available in WINDEV and WEBDEV.
- The ".RAR" archives are available in WINDEV, WEBDEV and WINDEV Mobile.
Note: RAR archives are supported up to and including version 5. - The archives of type ".7z" are available in WINDEV and WEBDEV.
- ".tar" or ".tgz" (".tar.gz") archives are available for WINDEV, WEBDEV, and WINDEV Mobile.
New in version 2025".gz" ("gzip") archives are available in WINDEV, WEBDEV, and WINDEV Mobile.
Remarks: - The size of the ".WDZ" archives cannot exceed 4 GB.
- The archives in".CAB" format are necessarily single-part archives.
To save the database of your customer, your program creates a backup archive. The files to save are compressed into the archive.
The archive is then split into several parts.
To simplify the use of backup files: create a self-extracting archive. Simply run the archive to automatically decompress all the files.
Related Examples:
|
Unit examples (WINDEV): The ZIP functions
[ + ] Using the compression/decompression functions of WINDEV: - Create an archive - Add files into an archive - Read the content of an archive - Extract files from an archive
|
|
Complete examples (WINDEV): WD Zip
[ + ] This example presents the use of archiving WLanguage functions with compression. The following topics are presented in this example: 1/ How to create an archive? 2/ How to compress and uncompress files? 3/ How to manage Drag&Drop from the file explorer of Windows to a TreeView control? Summary of the example supplied with WINDEV: This example allows you to create and read compressed archives in WDZ, ZIP, CAB and RAR format (in read-only). This feature can be very useful to manage the automatic backups. Furthermore, the example allows you to create multi-volume archives.
|
|
Android (WINDEV Mobile): Android ZIP
[ + ] This example is used to browse the folder of the Android device while searching for ZIP archives. The archives can be browsed and extracted into a directory of the device. The folders and the files found in the archive can be extracted individually.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|