Zip (create a zip archive)

function Zip(what, zipArchive: string): boolean

The Zip function creates a compressed (zip) archive with the files that are passed to it in the what argument (supports wildcards). If the destination zip archive already exists it will be overwritten and replaced.

This function returns true if the creation of the archive is successful, or false if the function fails.

Example:

{
  Zip('./documents/*.docx', './archives/dox.zip');
}