Table of Contents

FILEEXISTS method (Filesystem)

Description

Determines if a specified file exists.

Syntax

ExistsFlag = Exec_Method( "FILESYSTEM",  
                          "FILEEXISTS",  
                          FileName )
 

Parameters

NameRequiredDescription
FileNameYesSpecifies the name and path of the file to check for.

Returns

TRUE$ if the file exists, or FALSE$ if it doesn't.

Remarks

N/A

Example

 
// Use the FILESYSTEM FILEEXISTS method to check if a file exists

      FileName = "c:\my_data\aug_2017\book3.xls"

   

   If Exec_Method( "FILESYSTEM", "FILEEXISTS", FileName ) Then

      // It's there ...

   End
 
 
 

See Also

N/A