Show: Delphi
C++
Display Preferences
System.Zip.TZipFile.Extract
From XE2 API Documentation
Delphi
procedure Extract(FileName: string; Path: string = ''; CreateSubdirs: Boolean=True); overload; procedure Extract(Index: Integer; Path: string = ''; CreateSubdirs: Boolean=True); overload;
C++
void __fastcall Extract(System::UnicodeString FileName, System::UnicodeString Path = System::UnicodeString(), bool CreateSubdirs = true)/* overload */; void __fastcall Extract(int Index, System::UnicodeString Path = System::UnicodeString(), bool CreateSubdirs = true)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | System.Zip.pas System.Zip.hpp |
System.Zip | TZipFile |
Description
Extracts a single file from the .zip archive.
-
FileNamespecifies the file to be extracted from the .zip file. All slashes in the .zip file names should be '/'.
-
Indexrepresents the index of this file in the .zip archive.
-
Pathrepresents the location, on the disk, where the file will be extracted.
-
CreateSubDirsindicates whether the output should create subdirectories specified in the .zip file. The default value forCreateSubDirsis True.
The second overload procedure is useful when a .zip file has duplicate file names.