Show: Delphi C++
Display Preferences

System.Zip.TZipFile.Extract

From XE2 API Documentation
Jump to: navigation, search

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.

  • FileName specifies the file to be extracted from the .zip file. All slashes in the .zip file names should be '/'.
  • Index represents the index of this file in the .zip archive.
  • Path represents the location, on the disk, where the file will be extracted.
  • CreateSubDirs indicates whether the output should create subdirectories specified in the .zip file. The default value for CreateSubDirs is True.

The second overload procedure is useful when a .zip file has duplicate file names.

See Also

Personal tools
Previous Versions
Translations