System.Zip.TZipFile.Extract
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 */;
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
procedure function |
public | System.Zip.pas System.Zip.hpp |
System.Zip | TZipFile |
Description
Extrait un seul fichier de l'archive .zip.
FileNamespécifie le fichier à extraire du fichier .zip. Toutes les barres obliques des noms de fichiers .zip doivent être '/'.
Indexreprésente l'index de ce fichier dans l'archive .zip.
Pathreprésente l'emplacement de l'extraction du fichier sur le disque.
CreateSubDirsindique si la sortie doit créer des sous-directoires spécifiés dans le fichier .zip. La valeur par défaut deCreateSubDirsest True.
La seconde procédure de surcharge est utile quand un fichier .zip a des noms de fichiers dupliqués.