Next Topic

Previous Topic

Book Contents

zipDirectory()

Compresses a directory and any subdirectories or files it contains into a zip file on the agent machine. Enter the full path to be compressed, which can contain wildcards. Then enter the full path and file name of the zip file to be created or updated. If the target zip file already exists, optionally check a box to overwrite it.

Operating systems supported: Windows, OS X, Linux

Example

zipDirectory("c:\logs\data*", "#log_archive_dir#\archive.zip", true, "All Operating Systems", "Halt on Fail")