DriveWorks Pro 16: FsFileExists [send feedback...]


Returns TRUE if the specified file location exists. FALSE is returned if it does not.

An error string is returned if there are any problems checking for existence.


FsFileExists( [File Location] )


File Location is the file location to check. If a full path is not specified the function will check for the location relative to where the project is stored.

This function could affect performance (when the file being checked is located on an unreachable network for instance). Therefore the Rules Builder or Analyze Rule function in Test Mode will not display the result of the function, a blank will be displayed instead.



FsFileExists(" E:\DriveWorks\DataSheets\Product.pdf") Will check to see if the file E:\DriveWorks\DataSheets\Product.pdf exists and return True if so.
FsFileExists(" \\DRIVEWORKS-DATA\Specifications\" & OrderNumberReturn & "\Quote.doc") Will check to see if the file \\DRIVEWORKS-DATA\Specifications, combined with the result of the control OrderNumberReturn and \Quote.doc, exists and return True if so.

Table of Contents