Description
Determines if a file exists within a folder.
Syntax
target.file.Exists(folder_file)
folder_file (input) - the folder in which you want to check for the file
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 ifEnd FunctionSee also
'---------- 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
Platform Objects and Methodstarget.file.Deletetarget.file.GetDatetarget.file