The FILEEXISTS command checks whether a file exists in the filesystem where the tiImport application is executed and returns TRUE or FALSE.
/* 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'
Please sign in to leave a comment.