Unpack(Path: String);
Path. Path to the folder, to which archive must be unpacked.
The Unpack method unpacks archive to the specified hard drive folder.
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: