|
|
|
|
|
- Properties specific to zipArchivedFile variables
- Functions that use zipArchivedFile variables
zipArchivedFile (Variable type) In french: zipFichierArchivé
The zipArchivedFile type is used to handle: - a file contained in an archive corresponding to one of the following formats: ZIP, CAB, RAR, WDZ, 7z, TAR, gzip or TGZ (TAR.GZ).
- a file to add into an archive.
You can define and change the characteristics of this file using different WLanguage properties. This type of variable is used: Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. New in version 2025
MonArchive is zipArchive
zipOpen(MonArchive, "c:\Sauvegardes\archive.zip")
FOR EACH FichierArc OF MonArchive.File
Trace(FichierArc.Nom)
END
NouveauFichier is zipArchivedFile
NouveauFichier.Name = "FichierArchivé.txt"
NouveauFichier.Content = "Ce fichier a été archivé"
zipAddFile(MonArchive, NouveauFichier)
Properties Properties specific to zipArchivedFile variables The following properties can be used to define the characteristics of zipArchivedFile variables: | | | Name | Type used | Effect |
---|
CompressedSize | 8-byte integer | Size occupied by the compressed file in the archive. This property is read-only. | Content | Buffer | File content. This property is available in read-only if the file was already added into an archive. | DateCreated | Character string or DateTime variable | Date the file was created. This date was stored when the file was added into the archive. This information is restored when the file is extracted. This information is stored for the WDZ format only.In previous versions, this property corresponds to "CreationDate". | DateLastAccessed | Character string or DateTime variable | Date the file was last accessed. This date was stored when the file was added into the archive. This information is restored when the file is extracted. This information is stored for the WDZ format only.In previous versions, this property corresponds to "LastAccessDate". | DateModified | Character string or DateTime variable | Date of file modification. This date was stored when the file was added into the archive. This information is restored when the file is extracted.In previous versions, this property corresponds to "ModificationDate". | EncryptionMode | Character string | Character indicating whether the archived file is protected by encryption. The possible values are:- N: Normal file.
- +: Encrypted file (a password will be required to extract the file from the archive).
This property is available in read-only if the file was already added into an archive. | FileAttribute | Character string | One or more letters corresponding to the file attributes ("AH" for instance) stored when the file was added into the archive. The following letters are used:- R: Read-only file. The file can be accessed in read-only.
- H: Hidden file. The file name is grayed or invisible in the explorer.
- S: System file. The file is a Windows system file.
- A: "Archive" file. This attribute indicates that the file can be archived. Some programs use this attribute to determine which files have been saved.
This information is restored when the file is extracted. | Name | Character string | File path stored when the file was added to the archive. | Size | 8-byte integer | File size stored when the file was added to the archive. This property is read-only. |
Remarks Functions that use zipArchivedFile variables | | zipAddFile | Automatically adds and compresses any type of file into a CAB, ZIP, WDZ, 7z, TAR, gzip or TGZ (TAR.GZ) archive. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|