Table of Contents

, ,

FILE_EXISTS

Description

Checks if the specified file or directory exists

Syntax

FILE_EXISTS (path)

Cannot be used in the condition of a FIND action.

Parameters

An expression returning a string identifying a file or directory name

Returns

Yes/No: whether the file or directory exists.

Example

IF FILE_EXISTS('c:/myfile.txt') = 'Yes' THEN DISPLAY MESSAGE ('File exists') 

FILE_SIZE, FILE_LAST_MODIFIED, FILE_NAME, READ_TEXT_FILE