Skip to main content

Zip

AutomatR.DefaultActivities.FileAndFolder.Zip

The "Zip" activity in AutomatR facilitates adding a specified file or folder to a compressed file. This activity, categorized under File, simplifies the process of creating zip archives, enhancing automation workflows.

Properties

NameDescription
Input
Folder PathSpecifies the full path of the folder on your local drive that you want to zip. String variables containing the folder path.
Zip PathSpecifies the full path of the folder on your local drive where the compressed file should be created. If not provided, the zip file will be created in the same location as the source folder with the same name and a .zip extension. String variables containing the zip file path.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. Enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Zip" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Zip" activity onto the workflow.
  2. Configure the properties by specifying the folder path you want to zip and the path where the zip file should be created.
  3. Optionally, configure the delay.
  4. Execute the workflow to create a zip file containing the specified folder or file.

Example: Consider an example where the "Zip" activity is used to create a zip file named "zipfile.zip" containing the contents of the folder "C:\zipping files\":

Zip:
Folder Path: "C:\zipping files\"
Zip Path: "C:\zipping files\zipfile.zip"

In this example, the activity creates a zip file named "zipfile.zip" in the "C:\zipping files\" directory, containing the contents of the specified folder. Adjust the folder path and zip file path based on your requirements.