Checks whether the specified file exists.
bExists = SYS_FileExists (sFile)
|bExists||Whether the file exists. Returns TRUE if the file exists and FALSE if it does not. BOOLEAN.|
|sFile||The file to check for. STRING.|
SYS_FileExists checks that the specified file exists in the specified directory or, if no path is specified, the current working directory.
SYS_FileExists is executed by the Agent process, not the Silk Test Classic process. To affect the host process, use the function with the hHost notation or machine handle operator. For more information about the machine handle operator and hHost, see Machine handle operator.
BOOLEAN bExists bExists = SYS_FileExists ("textedit.exe") Print (bExists) // prints: TRUE bExists = SYS_FileExists ("!@#$%^&.(@!") Print (bExists) // prints: FALSE