EXIST

Action

Checks for the existence of one or more files.

 

Syntax

EXIST ("file name")

 

Parameters

File name

Identifies the file(s) you want to locate.

Remarks

Supports wildcards.

Returns

 

0

File not found

1

File found

 

Examples

IF EXIST (@LDRIVE + "\users.txt")

    DISPLAY @LDRIVE + "\users.txt"

ENDIF

IF EXIST (@LDRIVE + "\*.INI")

    ; Etc, etc.

ENDIF