PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Single-part archive
  • Multi-part archive
  • Overview
  • Principle
  • Caution: Single-part and multi-part archives
  • Examples
  • Storage on diskettes
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 Java Only the single-part archives are available.
Versions 17 and later
iPhone/iPad This feature is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This feature is now available for the iPhone/iPad applications.
iPhone/iPad This feature is now available for the 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
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 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".
Note: The archives in".CAB" format are necessarily single-part archives.
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, ...).
The sub-archives can be merged (zipMerge): the archive becomes a single-part archive.
Note: All these operations can also be performed via WDZip.
WindowsLinuxiPhone/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
WINDEVWEBDEV - Server code

Storage on diskettes

Your program must store a large amount of data on diskettes. Your program can create an archive containing the requested data. Once created, this archive can be divided into several parts. These volumes have the size of a diskette (1.44 MB). All you have to do is copy these different parts on the diskettes.
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 do I create an archive?
2/ How do I compress and uncompress files?
3/ How do I manage the 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 required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment