ShellBrowser Delphi Components Documentation
|
Extracts files from a ZIP file to an existing directory.
class procedure Unzip(const pZipFile: string; const pFolder: string; pOptions: TOperationOptions = soDefault); overload; static;
Parameters |
Description |
const pZipFile: string |
The existing ZIP file. |
const pFolder: string |
The folder where the files should be extracted. |
pOptions: TOperationOptions = soDefault |
Optional: The options to use. |
Exceptions |
Description |
if pZipFile or pFolder are invalid or if any COM exception occured. |
The following example shows how to unzip the contents of a ZIP file:
TJamFileOperation.Unzip('C:ZipFile.zip', 'C:UsersPublic');