XenoGuard Documentation


Actions » Windows » File » Exists 

The action Exists is used to check if a file is present in a specified directory.

[-] Hide
  1. Open the Windows node in the Workspace Explorer.
  2. Open the File node, select the Exists action.


The action has the following input parameters:

name Description
Path Name
The name of the path where the file is to be searched.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types
 [Variable, Parameter, Enum]


The action returns the following results:

Specifies if the file exists in the given directory or not.

Allowed Context Scope [Fixed]
Allowed Value

Example 1 (Locate a file in a specified directory):

This example combines the two local variables, Search Directory and Search File, to create a search path. The combined path is then used to check if the file exists in the specified directory and executes an If statement. If the condition is true, the Result in the "Then" branch is then output in Message Box

See other file operations: