FileExists method (WinStudio scripts)

Applies to

Document (file) operations

Description

Checks for the existence of a requested file.

Syntax

FileExists( string fileSpec, string servername, string logicalFolderName, out string errorMessage );

where:

  • fileSpec is the name of the requested file.
  • servername is the file server on which the requested file is expected.
  • logicalFolderName is the name of the logical folder on the file server where the requested file is expected to be.
  • errorMessage is the error message to be returned if the requested file is not found.