Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Reminder
  • Example of extracted path
  • Stored path
  • Subscript of files in the archive
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Returns the path of a file found in the archive. This archive can be in ZIP, CAB, RAR, WDZ or 7z format.
This path corresponds to the stored path when the file is added into the archive (<zipArchive variable>.AddFile or <zipArchive variable>.AddDirectory).
Archive is zipArchive
// Open the archive named "Archive"
ResOpenArchive = Archive.Open("D:\Backups\Backup.zip")
// In Windows Mobile:
// ResOpenArchive = Archive.Open("\Backups\Backup.zip")
IF ResOpenArchive = 0 THEN
// Find the "File.txt" file
ResFileFound = Archive.FindFile("File.txt")
// File path found
ExtractPath = Archive.ExtractPath(ResFileFound, zipDirectory)
<Result> = <Archive>.ExtractPath(<File subscript> [, <Path section to extract>])
<Result>: Character string
Requested path section.
<Archive>: zipArchive variable
Name of a zipArchive variable that corresponds to the archive to use.
<File subscript>: entier
Subscript of file in the archive. This subscript is returned by zipFindFile.
<Path section to extract>: Optional constant (or combination of constants)
Section of file path to extract:
zipDriveReturns the unit name only (WDZ format only). This constant has no effect for the archives whose type differs from WDZ.
Windows Mobile This constant is not available. Indeed, there is no root in the paths of directories.
Java This constant is ignored.
zipExtensionReturns the extension of the file (preceded by ".")
zipFilenameReturns the name of the file (without its extension)
zipDirectoryReturns the different directories of the file (the name and the extension of the file are not returned)
By default, the extracted path corresponds to the stored path.


  • Windows MobileJava Only the archives in ZIP format are available.

Example of extracted path

If the stored path is "C:\Temp\Data\File.txt", <zipArchive variable>.ExtractPath returns:
  • zipExtension: .txt
  • zipFilename: File
  • zipDirectory: \Temp\Data\
  • zipDrive: C:
  • zipFilename+zipExtension: File.txt
  • zipDirectory+zipFilename: \Temp\Data\File
  • ...
Java The zipDrive constant is ignored.
Archives in 7z format: The "\" character (beginning of the path) is not returned.

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".
zipAddFileFile locationzipNonezipDirectoryzipDrive
Remark: If the zipDrive constant is used:
  • the WDZ format stores the full path of the file (including the drive letter).
  • the ZIP format does not store the drive letter.
  • the 7z format stores the directories only.
Java The zipDrive constant is ignored.
Windows Mobile The table below presents the paths stored in the archive according to:
  • the access path to the file,
  • the stored path section.
zipAddFileFile locationzipNonezipDirectory

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.
Component: wd260zip.dll
Minimum version required
  • Version 24
This page is also available for…
Click [Add] to post a comment