Exists
Description
Description
Determines if a file exists within a folder.
Syntax
Syntax
target.file.Exists(folder_file)
folder_file (input) - the folder in which you want to check for the file
Return value
Return value
This function returns a boolean value (true/false)
Sample
'---------- Start ----------
Function Start
if target.file.Exists( "C:\FileTestFolder\trgFileSample.txt" ) = true then
trg.Message( "It exists" )
else trg.Message( "It does not exist" )
end if
End Function
See also