Skip to content

File Exists Activity

The File Exists activity verifies the presence of a specified file or directory within a given path. It returns a boolean value indicating whether the file or directory exists.

Field Description Requirement
File name The full path to the file or directory to check. This can include wildcard characters for pattern matching. Required
Result variable name The name of the variable to store the boolean result (true if the file or directory exists, false otherwise). Required
Retry Count The number of attempts to check for the file's existence before returning a result. The default value is 1. Optional

Action Types & Examples

Check File/Directory Existence

  • Format: boolean
  • Example Result: true

Implementation Examples

Field Setup - File name: - C:\Temp\Test (Folder path) - C:\Temp\Test.xlsx (Specific file path) - C:\Temp\a*.txt (Files starting with 'a' and .txt extension) - C:\Temp\*.xlsx (All .xlsx files) - C:\Temp\*.* (All files with any extension) - C:\Temp\* (All files/folders) - Result variable name: existResult

Execution Parameters - Retry Count: 7

Technical Notes

The File name parameter supports various path formats, including full paths to specific files or directories. It also supports wildcard characters (* for any sequence, ? for any single character) for batch processing or pattern matching. For example, C:\Temp\a*.txt matches all .txt files starting with 'a' in the C:\Temp directory, and C:\Temp\*.* matches all files with any extension in C:\Temp.