ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Archive functions
  • Overview
  • Single-part archive
  • Multi-part archive
  • Overview
  • Principle
  • Please note: Single- and multipart archives
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
Two types of archives are available:
  • single-part archive.
  • multi-part archive.
AndroidAndroid Widget Java Only the single-part archives are available.
Single-part archive
A single-part archive is a single file of type ".WDZ", ".ZIP", ".CAB" or ".7z": an archive file contains all compressed files.
The archive occupies the necessary space to contain all the compressed files.
Example Your program needs to save several large files. Your program can create an archive containing all the files to save. This archive will increase the available disk space.
Multi-part archive
WindowsLinuxiPhone/iPad

Overview

A multi-file archive contains several files (or sub-archives) of identical size. The size of each sub-archive is defined when creating the multi-file archive.
The first sub-archive is a file whose type is ".WDZ", ".ZIP" or "7z". The following sub-archives are files numbered from 1 to N via their extension.
For archives in WINDEV (WDZ) format, sub-parts have the following extensions: ".001", ".002", ..., ".NNN".
For archives in standard ZIP format, sub-parts have the following extension: ".Z01", ".Z02", ..., ".ZNN".
Note Archives in ".CAB" format must be single-part.
WindowsLinuxiPhone/iPad

Principle

To create a multi-part archive:
  1. Create an archive (zipCreate).
  2. Add files to this archive. The added files are automatically compressed (zipAddFile, zipAddDirectory).
  3. Split this archive into several sub-archives (zipSplit). The sub-archives have the same size. You define the size of the sub-archives.
Once the multi-file archive is created, the sub-archives can be stored on different media (diskette, CD, ...).
Sub-archives can be grouped together (zipMerge): the archive becomes single-part again.
Remark: All these operations can also be performed using WDZip.
WindowsLinuxiPhone/iPad

Please note: Single- and multipart archives

Some archiving features can only be used on the single-part archives (adding files, deleting files, creating a self-extracting executable, ...). To perform these operations on a multi-part archive, all you have to do is merge the sub-archives (zipMerge) to get a single-part archive.
From a multi-part archive, you can only:
Related Examples:
WD Zip 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.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/25/2025

Send a report | Local help