|
- Reminder
- Subscript of files in the archive
- Stored path
- Encrypting a file in an archive
zipInfoFile (Function) In french: zipInfoFichier Syntax
Finding out information about a file identified by its subscript Hide the details
<Result> = zipInfoFile(<Archive> , <File subscript in archive>)
<Result>: Character string - Empty string if the function failed (file not found in the archive, etc.).
- Characteristics of the file found in the specified archive:
<File path and name> + TAB + <Initial file size> + TAB + <Compressed file size> + TAB + <Date and time of file creation (YYYYMMDDHHMMSS)> + TAB + <Date and time of file modification (YYYYMMDDHHMMSS)> + TAB + <Date and time of file access (YYYYMMDDHHMMSS)> + TAB + <File attributes> + TAB + <Encryption mode of file>
- The file attributes correspond to one or more letters (or "ERR" if an error occurred). 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 system file of Windows.
- A: "Archive" file. This attribute indicates that the file can be archived. Some programs are using this attribute to find out which files have been saved.
- D: Directory or sub-directory. The file is a directory or a sub-directory.
- The encryption mode of the file corresponds to "+" for an encrypted file (in zip or WDZ format) and "N" for a standard file.
Archives in Zip format and in 7z format: Only the date of last modification is returned.
<Archive>: Character string (with quotes) or zipArchive variable Name of archive to use. This name can correspond to: <File subscript in archive>: Integer Subscript of a file found in the archive. The characteristics of this file are requested. This subscript is returned by zipFindFile.
Finding out information about a file identified by its path Hide the details
<Result> = zipInfoFile(<Archive> , <File path in archive>)
<Result>: Character string - Empty string if the function failed (file not found in the archive, etc.).
- Characteristics of the file found in the specified archive:
<File path and name> + TAB + <Initial file size> + TAB + <Compressed file size> + TAB + <Date and time of file creation (YYYYMMDDHHMMSS)> + TAB + <Date and time of file modification (YYYYMMDDHHMMSS)> + TAB + <Date and time of file access (YYYYMMDDHHMMSS)> + TAB + <File attributes> + TAB + <Encryption mode of file>
- The file attributes correspond to one or more letters (or "ERR" if an error occurred). 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 system file of Windows.
- A: "Archive" file. This attribute indicates that the file can be archived. Some programs are using this attribute to find out which files have been saved.
- D: Directory or sub-directory. The file is a directory or a sub-directory.
- The encryption mode of file corresponds to "+" for an encrypted file (in zip or WDZ format) and to "N" for a standard file.
Archives in Zip format and in 7z format: Only the date of last modification is returned.
<Archive>: Character string (with quotes) or zipArchive variable Name of archive to use. This name can correspond to: <File path in archive>: Character string (with quotes) Stored path of a file found in the archive. The characteristics of this file are requested. Remarks Subscript of files in the archive When a file is added into an archive, a subscript is automatically assigned to the file. This subscript corresponds to the order in which the files are included in the archive. To select a file in the archive, you can use: - the subscript of the element (the subscript of an element is returned by zipFindFile).
- the stored path of element.
Stored path The table below presents the paths stored in the archive according to: - the access path to the file,
- the stored path section.
The current directory is: "C:\Temp". | | | | | zipAddFile | File location | zipNone | zipDirectory | zipDrive | zipAddFile("Archi", "File.txt") | C:\Temp\File.txt | File.txt | File.txt | File.txt | zipAddFile("Archi", "Data\File.txt") | C:\Temp\Data\File.txt | File.txt | Data\File.txt | Data\File.txt | zipAddFile("Archi", "D:\Data\File.txt") | D:\Data\File.txt | File.txt | Data\File.txt | D:\Data\File.txt | Remark: If the zipDrive constant is used, the WDZ format stores the full path of the file (including the drive letter) while the ZIP format does not store the drive letter.
Business / UI classification : Business Logic
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |