<<

Contents

Search

>>

 

FILE_EXISTS_CLIENT

 

 

Function

 

 

Syntax:

FILE_EXISTS_CLIENT(<Filename>)

 

<Filename> = <STRING-EXPRESSION>

 

Meaning:

Tests whether a file or a directory exists on the client computer.

 

If the program is not a 2T program, the functions FILE_EXISTS_CLIENT and FILE_EXISTS are identical.

 

FILE_EXISTS_CLIENT returns the result 1 if <Filename> exists, otherwise 0. 

 

Parameter:

Filename

Name of file or directory

 

Sample:

IF FILE_EXISTS_CLIENT("C:\TESTDATA") = 0

THEN MAKE_DIRECTORY_CLIENT "C:\TESTDATA"

          ON ERROR ERRORMES = "Error" + STR$(OK) END

ENDIF

 

See also:

FILE_EXISTS

IS_DIRECTORY