ShellBrowser Delphi Components Documentation
|
Appends a file or folder to a ZIP file.
class procedure Zip(const pFileName: string; const pZipFile: string); overload; static;
Parameters |
Description |
const pFileName: string |
File that should be appended to a ZIP file. |
const pZipFile: string |
The ZIP file. |
IMPORTANT: The operation is performed on a background thread!
Exceptions |
Description |
if pFileName or pZipFile are invalid or if any COM exception occured. |
The following example shows how to append a file to a ZIP file:
TJamFileOperation.Zip('C:Windowsexplorer.exe', 'C:Zipfile.zip');