System.Zip.TZipFile.Extract

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Extract(const FileName: string; const Path: string = ''; CreateSubdirs: Boolean = True); overload;
procedure Extract(Index: Integer; const Path: string = ''; CreateSubdirs: Boolean = True); overload;

C++

void __fastcall Extract(const System::UnicodeString FileName, const System::UnicodeString Path = System::UnicodeString(), bool CreateSubdirs = true)/* overload */;
void __fastcall Extract(int Index, const 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.

To track the progress of the extraction, use OnProgress.

See Also