RPA File ActivitiesΒΆ
Append LineΒΆ
Append Line activity appends line in the text file.
If the file does not exist on the specified path, it creates a file and adds the specified text.

Append Line activity and properties
Properties of Append Line.
| Properties | Description |
|---|---|
| Encoding | Enter the encoding type to be used. This field support string values. Enter the encoding within double quotes. Refer to Encoding Types. If no encoding type is specified, the activity will search for the file's Byte Order Marks to detect the encoding. If no Byte Order Marks are detected and Use default encoding is not selected, UTF-8 is selected by default. |
| File Name | Enter the path and file name to which the string or text line need to be appended. Enter the details within double quotes as it supports only string. If the path is not full, the file is created in the project folder. Use local path or a variable. In the designer the same value appears in the Write to file name field. You can enter the value in the designer or click the button adjacent to Write to file name field to select the file from the required path. |
| Text | Enter the text to be appended to the file. Enter the details within double quotes as it supports only string. You can add a variable and then resolve the variable in runtime. In the designer the same value appears in the Text field. You can enter the value in the designer also. |
| UseDefaultEncoding | Enter True if you want to use the default operating system encoding when text is added or when the encoding cannot be detected else enter False and then UTF-8 encoding is used. |
| DisplayName | Title of the activity inside the sequence. |
Browse for FileΒΆ
At the run time, the Browse for File activity opens a dialog box to browse for a file and the user can select the required file.

Browse for File activity and properties
Properties of Browse for File.
Browse for FolderΒΆ
At the run time, the Browse for Folder activity opens a dialog box to browse for a folder and the user can select the required folder.

Browse for Folder activity and properties
Properties of Browse for Folder.
| Properties | Description |
|---|---|
| DisplayName | Title of the activity inside the sequence. |
| Selected Folder | Enter a variable for storing the output. The output stores the full path where the selected folder is stored. Selected Folder Path in the designer displays the selected variable or entered Folder path |
Compress ArchiveΒΆ
Compress Archive activity is used to create compressed folder (zip) of files.

Compress Archive activity and properties
Properties of Compress Archive.
Copy FileΒΆ
Copy File activity is used to Copy a file from a specified location to another location.

Copy File activity and properties
Properties of Copy File.
| Properties | Description |
|---|---|
| Destination | Enter the path where you want to paste the copied files. If you provide a path along with the fil name, the file content is copied to the provided file name. If you provide a folder path, the file is copied with its original name into that folder. |
| Overwrite | Select Overwrite to overwrite the file in the destination if it already exists and creates a new file if it does not exist. Clear Overwrite, to create a new file in the destination irrespective of whether the file exists or not |
| Source | Enter the path from where you want to copy the file. |
| Displayname | Title of the Activity inside the sequence. |
Copy FolderΒΆ
Copy Folder activity is used to Copy a folder from a specified location to another location. You can configure this activity to copy the sub folder or to overwrite the folder in the destination with the new folder.

Copy Folder activity and properties
Properties of Copy Folders.
| Properties | Description |
|---|---|
| Destination | Enter the path where you want to paste the copied folder. |
| Include Subfolders | Select Include subfolders if you want to copy the subfolders. |
| Overwrite | Select Overwrite to overwrite the folder in the destination if it already exists and creates a new file if it does not exist. Clear Overwrite, to create a new folder in the destination irrespective of whether the file exists or not. |
| Source | Enter the path from where you want to copy the file. |
| Displayname | Title of the Activity inside the sequence. |
Create FileΒΆ
Create File activity is used create an empty file in the specified location. If a file already exists in that location, the new file will replace the existing file. If you want to create a new file in which you want to write some content, it is better to use the Append Line activity.

Create File activity and properties
Properties of Create File.
| Properties | Description |
|---|---|
| Name | Enter the file name. |
| Path | Enter the path of the file. The file will get created in this path with the specified file name. |
| Displayname | Title of the Activity inside the sequence. |
| File Name | Enter the variable for storing the output. File path is stored in the output |
Create FolderΒΆ
Create Folder activity is used create an empty folder in the specified location. If a folder already exists in that location, the activity will not replace any existing folder.

Create Folder activity and properties
Properties of Create Folder.
| Properties | Description |
|---|---|
| Name | Enter the folder name. |
| Path | Enter the path of the folder. The folder will get created in this path with the specified file name. |
| Displayname | Title of the activity inside the sequence. |
| Folder Name | Enter the variable for storing the output. The folder path is stored in the output. |
DeleteΒΆ
Deletes activity deletes the files and folders in the specified location. If a folder in the specified path contains multiple files or sub folders, they all get deleted.

Delete activity and properties
Properties of Delete.
| Properties | Description |
|---|---|
| Path | Enter the path of the file or folder to be deleted. The folder will get deleted with all its subfolders and files. Alternatively, enter the variable to capture the path at the run time |
| Displayname | Title of the activity inside the sequence. |
Delete FileΒΆ
Deletes activity deletes the specified file in the specified location.

Delete File activity and properties
Properties of Delete File.
| Properties | Description |
|---|---|
| File Path | Enter the path of the file to be deleted along with the file name. Or Click the button adjacent to the File Name to select the file to be deleted. Alternatively, enter the variable to capture the file path at the run time. |
| Displayname | Title of the activity inside the sequence. |
Delete FolderΒΆ
Deletes activity deletes the specified Folder in the specified path. The contents of the folder including the subfolders get deleted.

Delete Folder activity and properties
Properties of Delete Folder.
| Properties | Description |
|---|---|
| File Path | Enter the path of the file to be deleted. Or Click the button adjacent to the Folder Name to select the folder to be deleted. Alternatively, enter the variable to capture the folder path at the run time. |
| Displayname | Title of the activity inside the sequence. |
Expand ArchiveΒΆ
Expand Archive activity is used to expand the zip files.

Expand Archive activity and properties
Properties of Expand Archive.
| Properties | Description |
|---|---|
| Displayname | Title of the activity inside the sequence. |
| Filename | Enter the zip file name. |
| Overwrite | Enter True if you want to overwrite the file with the same name. Enter False if you want to create a new file without overwriting the existing. |
| Path | Enter the path of the file. |
File ExistsΒΆ
File Exists activity checks if the specified file path exists.

File Exists activity and properties
Properties of File Exists.
| Properties | Description |
|---|---|
| Filename | Enter the file path along with the file name. The activity checks this path for checking if the file exists. |
| Displayname | Title of the activity. |
| Exists | Stores the output. If the output is True, the file exists. If the output is False, the file does not exist. |
Folder ExistsΒΆ
Folder Exists activity checks if the specified folder exists in the path.

Folder Exists activity and properties
Properties of Folder Exists.
| Properties | Description |
|---|---|
| Folder Location | Enter the folder path. The activity checks this path for checking if the folder exists. |
| DisplayName | Title of the activity. |
| Exists | Enter a variable to hold the output. This variable stores the output. If the output is True , the file exists. If the output is False , the file does not exist. |
For Each File In FolderΒΆ
For Each File In Folder activity executes an activity or a series of activities for each file in a specified folder. Use this activity when you are working with the files in a folder and you want to repeat one or more activities for each individual file.

For Each File In Folder activity and properties
Properties of For Each File In Folder.
In the Drop Hint area within the activity (in the designer), drop the required activities and configure the same for execution.
For Each Folder In FolderΒΆ
For Each Folder In Folder activity executes an activity or a series of activities for each child folder in a specified folder. Use this activity when you are working with the child folders in a parent folder and you want to repeat one or more activities for each individual child folder.

For Each Folder In Folder activity and properties
Properties of For Each Folder In Folder.
In the Drop Hint area within the activity (in the designer), drop the required activities and configure the same for execution.
Get File InfoΒΆ
Get File Info activity gets the file information (properties of the file) from the specified file path.

Get File Info activity and properties
Properties of Get File Info.
| Properties | Description |
|---|---|
| Filename | Enter the file path along with the file name. The activity checks this path for checking if the file exists. |
| Displayname | Title of the activity. |
| Result | Stores the output. The file info is stored in the output variable. |
Get Folder InfoΒΆ
Get Folder Info activity gets the folder information (properties of the folder) from the specified file path.

Get Folder Info activity and properties
Properties of Get Folder Info.
| Properties | Description |
|---|---|
| Filepath | Enter the folder location or the path. |
| Displayname | Title of the activity. |
| Result | Stores the output. The folder info is stored in the output variable. |
Move FileΒΆ
Move File activity moves the file from one location to another. The file from the source folder will get removed.

Move File activity and properties
Properties of Move File.
| Properties | Description |
|---|---|
| Destination | Enter the path of the Destination folder where you have to move the file. |
| Overwrite | Select Overwrite to overwrite the file in the destination if it already exists. It creates a new file if the file does not exist. Clear Overwrite, to create a new file in the destination irrespective of whether the file exists or not. |
| Source | Enter the path of the source of the file that is to be moved. |
| Displayname | Title of the activity |
Move FolderΒΆ
Move Folder activity moves the folder from location to another. The folder from the source folder will get removed.

Move Folder activity and properties
Properties of Move Folder.
| Properties | Description |
|---|---|
| Destination | Enter the path of the Destination folder where you have to move the folder. |
| Overwrite | Select Overwrite to overwrite the folder in the destination if it already exists. It creates a new folder if the folder does not exist. Clear Overwrite, to create a new folder in the destination irrespective of whether the folder exists or not. |
| Source | Enter the path of the source of the folder that is to be moved. |
| Displayname | Title of the activity. |
Path ExistsΒΆ
Path Exists activity checks if the specified path exists.

Path Exists activity and properties
Properties of Path Exists.
Read Text FileΒΆ
Read Text File activity reads all characters from a specified file and stores it in a String variable.

Read Text File activity and properties
Properties of Read Text File.
| Properties | Description |
|---|---|
| Encoding | Enter the encoding type to be used. This field support string values. Enter the encoding within double quotes. Refer to Encoding Types. If no encoding type is specified, the activity will search for the file's Byte Order Marks to detect the encoding. If no Byte Order Marks are detected and Use default encoding is not selected, UTF-8 is selected by default. |
| File Name | Enter the path and file name from which the string or text line need to be read. Enter the details within double quotes as it supports only string. If the path is not full, the file is created in the project folder. Use local path or a variable. In the designer the same value appears in the File Name field. You can enter the value in the designer or click the button adjacent to Write to file name field to select the file from the required path. |
| DisplayName | Title of the activity inside the sequence. |
| File Content | Enter an output variable that stores the file content that is read. |
Rename FileΒΆ
Rename File activity is used rename a file in the specified location or path.

Rename File activity and properties
Properties of Rename File.
| Properties | Description |
|---|---|
| File Path | Enter the path of the file along with the filename. The activity will rename the specified file in this path. |
| Keep Extension | Select Keep Extension to keep the extension of the file without any change. Clear Keep Extension, if you do not want to keep the extension of the existing file for the new file name. |
| File Name | Enter the new file name. |
| Displayname | Title of the Activity inside the sequence. |
Rename FolderΒΆ
Rename Folder activity is used rename a folder in a specified location or path.

Rename Folder activity and properties
Properties of Rename Folder.
| Properties | Description |
|---|---|
| Folder Path | Enter the path of the folder along with the folder name that is to be renamed. The activity will rename the specified folder name. |
| New Name | Enter the new folder name. |
| Displayname | Title of the Activity inside the sequence. |
Write Text FileΒΆ
Write Text File activity writes the text to a file in the specified location.

Write Text File activity and properties
Properties of Write Text File.
| Properties | Description |
|---|---|
| Content | Enter the content that is to be written to the file. |
| Encoding | Enter the encoding type to be used. This field support string values. Enter the encoding within double quotes. Refer to Encoding Types. If no encoding type is specified, the activity will search for the file's Byte Order Marks to detect the encoding. If no Byte Order Marks are detected and Use default encoding is not selected, UTF-8 is selected by default. |
| File Name | Enter the path and file name to which the string or text line need to be written. Enter the details within double quotes as it supports only string. If the path is not full, the file is created in the project folder. Use local path or a variable. In the designer the same value appears in the Write to File Name field. You can enter the value in the designer or click the button adjacent to Write to file name field to select the file from the required path. |
| DisplayName | Title of the activity inside the sequence. |
AppendixΒΆ
Encoding TypesΒΆ
The following are the encoding names that can be used for the Encoding property.
-
System.Text.ASCIIEncoding
-
System.Text.UnicodeEncoding
-
System.Text.UTF32Encoding
-
System.Text.UTF7Encoding
-
System.Text.UTF8Encoding



