Skip to main content

GetFileProperties

Use this function to return the properties of a file. It will return the last modified date and time in ISO format, file size and the hash value in an object variable. This function works with absolute and relative paths.

The allowed paths for the GETFILEPROPERTIES function are specified by the PERMITTED_FILEMAINTENANCE_PATH parameter in the lv_af.cfg file, located in the working directory of the lv_af.exe. Files that cannot have properties retrieved, are defined by the EXCLUDED_FILEMAINTENANCE_FILES parameter in the same file. These parameters only apply when they are set.

Syntax:

GETFILEPROPERTIES("FileName")

where:

  • FileName is the name of file enclosed in quotes that the properties will be returned for.

Syntax example:

CREATE VARIABLE oFileProperties AS Object

SET VARIABLE oFileProperties = GETFILEPROPERTIES("Execute.lvpro")

See also

Was this article helpful?

We're sorry to hear that.