Definition and Usage
This command checks if a specified file exists at the given file path. It can be used to verify the existence of a file before performing operations on it or to create conditional workflows based on whether a file exists or not.
Parameter Values
Input parameters
Parameter Name | Description | Possible Values | Required | Options / Notes |
File path | Enter or select file path | File path string | Yes | You can manually enter a path or use the "Select file" button to browse for a file |
If file | Check the state of the file | Exists, Does not exist | Yes | Use to define the condition to check for |
Variables produced
This action doesn't produce any variables.
Using Variables in Conditions
You can use variables in the "File path" parameter by clicking the {x} icon to insert previously defined variables. This is particularly useful when:
Working with dynamic file paths stored in variables
Processing files in a loop with changing file names
Using output from previous commands that return file paths
Ensure that any variable used contains a valid file path string to avoid execution errors.
Notes
The command only checks for the existence of files, not folders or directories
Ensure that the RPA bot has sufficient permissions to access the specified file path
This command is typically used as a condition in an If/Else branch to create different workflow paths based on file existence
The file path should be fully qualified (including drive letter and complete path) for reliable operation
If using network paths, ensure proper network access is available during execution