Vicon Shogun banner

Description

Determines whether a file or folder exists on the file system.

Note that all file and folder paths in Shogun Post HSL scripting use forward slashes instead of back-slashes.

Functional area

System

Command syntax

Syntax

pathExists "folderPath"

Arguments

NameTypeRequiredComments
folderPathstringyesThe name of the file or folder to search for.

Flags

None

Return value

boolean

Returns true if the file or folder path specified exists on the file system.

Examples

// See if this file exists on our disk 
boolean $itExists = `pathExists "C:/temp/test.txt"`;
print $itExists;