Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

FileExists

Use this function to determine whether the specified file exists in the specified directory. A return value of 1 means the file exists in the specified directory; a value of 0 means it does not.

Note: If you create a variable to store the return value for this function, you must create the variable with the NUM type.

Copy

Syntax

FileExists("FileName")            

where:

  • FileName is the name of the file, including the extension, to search for. In batch mode, the file name must be relative to the current directory. For Longview Smart Client, the file name must be relative to the working directory. You can also specify a full path to search in an alternate directory.

Copy

Syntax example

SymbolSpec = FileExists("Reports.xlsx")
If FileExists("Reports.xlsx")                

Published:

FileExists

Use this function to determine whether the specified file exists in the specified directory. A return value of 1 means the file exists in the specified directory; a value of 0 means it does not.

Note: If you create a variable to store the return value for this function, you must create the variable with the NUM type.

Copy

Syntax

FileExists("FileName")            

where:

  • FileName is the name of the file, including the extension, to search for. In batch mode, the file name must be relative to the current directory. For Longview Smart Client, the file name must be relative to the working directory. You can also specify a full path to search in an alternate directory.

Copy

Syntax example

SymbolSpec = FileExists("Reports.xlsx")
If FileExists("Reports.xlsx")                

For an optimal Community experience, Please view on Desktop