PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 24 feature!
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
Archiving functions (management of ZIP, WDZ, CAB, RAR, 7z, TAR and TGZ (TAR.GZ)) (object syntax)
The following WLanguage functions are used to create and manage archives (object syntax):
<zipArchive variable>.AddDirectoryAdds all the files found in a directory and in its subdirectories into an archive and compresses them.
Versions 24 and later
<zipArchive variable>.AddFile
<zipArchive variable>.AddFile
Adds a file (of any type) into an archive in CAB, ZIP, WDZ and 7z, TAR or TGZ (TAR.GZ) format and compresses it.
<zipArchive variable>.AddFileListAdds a list of files (of any type) into an archive in ZIP, CAB, WDZ or 7z format and compresses it.
Versions 24 and later
<zipArchive variable>.Close
<zipArchive variable>.Close
Closes an archive.
Versions 24 and later
<zipArchive variable>.Create
<zipArchive variable>.Create
Creates an archive.
Versions 24 and later
<zipArchive variable>.CreateExe
<zipArchive variable>.CreateExe
Creates a self-extracting archive in executable format (.EXE).
<zipArchive variable>.CurrentFileReturns the name of the archived file currently handled by the functions for adding and extracting files.
Versions 24 and later
<zipArchive variable>.DeleteAll
<zipArchive variable>.DeleteAll
Deletes all files from an archive.
<zipArchive variable>.DeleteFileDeletes a file from an archive.
<zipArchive variable>.DeleteFileListDeletes a list of files from an archive.
<zipArchive variable>.ExtractAllExtracts all files from an archive and decompresses them.
<zipArchive variable>.ExtractFileExtracts a file from an archive and automatically decompresses it to a physical location or in memory.
<zipArchive variable>.ExtractFileListExtracts and decompresses a list of files found in an archive to a physical location.
<zipArchive variable>.ExtractPathReturns the path of a file found in the archive.
Versions 24 and later
<zipArchive variable>.FileSize
<zipArchive variable>.FileSize
Returns the size of one of the files found in the archive (in CAB, RAR, WDZ, ZIP, 7z, TAR or TGZ (TAR.GZ) format):
  • the compressed size of the file.
  • the size of file before compression.
Versions 24 and later
<zipArchive variable>.InfoFile
<zipArchive variable>.InfoFile
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 encryption mode of the file.
Versions 24 and later
<zipArchive variable>.IsMulti
<zipArchive variable>.IsMulti
Returns the type of archive: single-part archive or multi-part archive.
Versions 24 and later
<zipArchive variable>.ListFile
<zipArchive variable>.ListFile
Returns the list of files found in an archive.
Versions 24 and later
<zipArchive variable>.Merge
<zipArchive variable>.Merge
Merges the different sub-archives found in a multi-part archive to create a single-part archive.
<zipArchive variable>.NbPartNeededReturns the number of parts of a given size required to split a single-part archive.
Versions 24 and later
<zipArchive variable>.Open
<zipArchive variable>.Open
Opens an existing archive.
Versions 24 and later
<zipArchive variable>.OpenCAB
<zipArchive variable>.OpenCAB
Opens an existing archive in CAB format.
Versions 24 and later
<zipArchive variable>.OpenRAR
<zipArchive variable>.OpenRAR
Opens an existing archive in RAR format.
Versions 24 and later
<zipArchive variable>.Split
<zipArchive variable>.Split
Splits an archive into several sub-archives of a given size.
Note: The archiving functions can be used in a thread without locking the other threads during their execution.
Related Examples:
The ZIP functions 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
Pocket ZIP Mobile (WINDEV Mobile): Pocket ZIP
[ + ] This example presents the use of the archiving WLanguage functions with compression.
The following topics are presented in this example:
1/ How do I compress files and uncompress archives?
2/ Managing the display of a table and menu in a Pocket PC application
3/ Managing a popup menu for the last documents opened
Summary of the example supplied with WINDEV Mobile:
This example allows you to create and read archives compressed in ZIP format. This feature can be very useful to manage the automatic backups.
How do I compress files and uncompress archives?
Several WLanguage functions allow you to:
- Handle an archive
- Handle the files to compress
- Manage the single-part archives and the multi-part archives
- Retrieve information about the archiving
All the archiving functions of WINDEV Mobile are prefixed by zip
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.
Android ZIP 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.
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment