Please enable JavaScript to view this site.

Codolex

Navigation: Activities > Zipping

Create/open zip file

Scroll Prev Top Next More

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

 

CreateOpenZip

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.

 

© by GDK Software