ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Shell.Dialogs.FileOperation.TJamFileOperation.Zip

Appends a file or folder to a ZIP file.

Syntax
Pascal
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');