IZipArchive.Unpack

Syntax

Unpack(Path: String);

Parameters

Path. Path to the folder, to which archive must be unpacked.

Description

The Unpack method unpacks archive to the specified hard drive folder.

Example

Executing the example requires that the hard drive contains the archive: D:\Work\Archives\Data.zip.

Add a link to the IO system assembly.

Sub UserProc;
Var
    ZIP: IZipArchive;
Begin
    //Read archive
    ZIP := New ZipArchive.Create("D:\Work\Archives\Data.zip", ZipMode.Read);
    //Unpack archive
    ZIP.Unpack("D:\Work\NewFolder");
    Dispose ZIP;
End Sub UserProc;

After executing the example the archive is unpacked to the specified folder.

See also:

IZipArchive