Zip

This activity is used to compress a folder during the execution of a robot.

Technical Reference

 

 

 

 

 

 

 

 

 

INPUT

FileList: If you want to ZIP multiple files, declare the variable type as List<string>
Specify the declared variable 
name.

FileName: Specify the name of the file or folder that you want to zip

FolderDirectory: Specify the directory path in which the file to be zipped is located.

Password: Specify the password if any for the zipped folder.

SavePath: Specify the path in which the zipped file or folder must be saved. We must use the extension “.zip”

 

 

 

 

 

 

 

 

 

MISC

Display Name: Displays the name of the activity. You can also customize the activity name to help troubleshoot issues faster. This name will be used for logging purposes.

Mode: Can be chosen from the drop down if a file or a folder must be zipped.

SkipOnError: It specifies whether to continue executing the workflow even if it throws an error. This supports only Boolean value “True or False.”

True: Continues to execute the workflow irrespective of any error thrown.

False: Stops the workflow if it throws any error

Version: It specifies the version of the FS automation feature in use

 

OUTPUT

Result: Declare a variable here to see if the file has been zipped or not

* Mandatory fields to execute the workflow.

The following activity illustrates on how we are going to zip a folder which is located in the desktop and save it to the documents using the Zip activity.

1.      Drag and drop a zip activity to the workflow.

2.      Specify the file or folder name that has to zipped within quotes.

3.      Mention the path of the folder or file to be zipped

4.      Specify the password for the zipped file or folder if any

5.      Specify the path in which the file has to be saved with the file name and add .zip extension to it

E.g., "C:\Users \Documents\Test Zip.zip"

6.      Execute the workflow and we can see that the folder has been zipped and saved to the save path.

The bot has executed the workflow and zipped the specified folder.