The 'Create/open zip file' activity can be used to create a TZipfile object with a reference to an existing .zip file or create a new .zip file.
Uses System.Zip.TZipFile
Activity properties
begin var ZipFile: TZipFile; var ZipPath: string; ZipPath := ZipFilePath;
ZipFile := TZipFile.Create; ZipFile.Open(ZipPath, zmWrite); end; |
Resulting Code
If no .zip file is found at the zip path, and the path is valid, a new .zip file will be created.