The FILEEXISTS command checks whether a file exists in the filesystem where the tiImport application is executed and returns TRUE or FALSE.
Syntax:
FILEEXISTS(path_and_filename_to_check)
Example:
/* Checks if a file exists and only if found prints the result */
IF FILEEXISTS('c:\budget\mybudget.xlsx')=TRUE THEN
PRINT 'The file MYBUDGET.XLSX exists'
END IF
Comments
Please sign in to leave a comment.