Check if File Exists

Object to check if the file exists in the given directory

Settings

To use this object, simply drag it into Studio workspace and select the desired file.

General object layout

Filling in the object:

Field
Description

Title

It's the object's name and doesn't need to be changed, unless you want to identify it to make it easier to find on the robot, for example: "Check if File Exists - Automated Archive".

File

File to be checked.

Check if it does not exist

Option to check if the file does not exist.

INTERPOLATION

This is a technical concept used in programming and you don't need to worry about changing it at this point.

USE CASES

  • Use it to check whether a file exists in the directory or not.

  • If you first need to check the existence of the file to be able to do another type of automation on the robot.

Example

Check if File Exists and if it exists, it will only execute actions within the object.

Robot Configuration Example - Check if File Exists

STEP 1: To set Check if File Exists object.

Check If File Exists object setting

STEP 2: To set Message Boxes.

Message Box 1 setting
Message Box 2 setting

STEP 3: To set Return, making the robot not continue with its execution, as the verification was positive.

Return object setting

STEP 4: Run the robot and check the actions.

Successful robot example execution - Check If FIle Exists

Download It:

Last updated

Was this helpful?