PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Single-part archive
  • Multi-part archive
  • Overview
  • Principle
  • Caution: Single-part and multi-part archives
  • Examples
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
Two types of archives are available:
  • single-part archive.
  • multi-part archive.
AndroidAndroid Widget Only the single-part archives are available.
Versions 17 and later
iPhone/iPad This feature is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This feature is now available for iPhone/iPad applications.
iPhone/iPad This feature is now available for iPhone/iPad applications.
Single-part archive
A single-part archive appears like a single file whose type is ".WDZ", ".ZIP", ".CAB" or ".7z": an archive file groups all the compressed files.
The archive occupies the necessary space to contain all the compressed files.
Example: Your program must 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
iPhone/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 the archives in WINDEV format (WDZ), the sub-archives have the following extensions: ".001", ".002", ..., ".NNN".
For the archives in ZIP format, the sub-archives have the following extensions: ".Z01", ".Z02", ..., ".ZNN".
Remark: The archives in".CAB" format are necessarily single-part archives.
iPhone/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, ...).
The sub-archives can be merged (zipMerge): the archive becomes a single-part archive.
Remark: All these operations can also be performed via WDZip.
iPhone/iPad

Caution: Single-part and multi-part 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 only have the ability to:
Examples
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