FILEEXISTS

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
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.