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
Name | Description |
---|---|
Input | |
Folder Path | Specifies the full path of the folder on your local drive that you want to zip. String variables containing the folder path. |
Zip Path | Specifies 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 Name | Provides 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 | |
Delay | Specifies 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:
- Drag and drop the "Zip" activity onto the workflow.
- Configure the properties by specifying the folder path you want to zip and the path where the zip file should be created.
- Optionally, configure the delay.
- 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.