Appendix: Built-in Scripting Language Returned value Examples GetFileAttributes Reads the attributes of a specified file. Syntax GetFileAttributes( strFile ) strFile The file path and name of the file from which to read the attributes. Returned value Examples GetFileTime Reads the time and date the file was last modified. Syntax GetFileTime( strFileName , numFormat ) strFileName The file path and name of the file to be read. numFormat A numeric flag specifiying the format of the returned data: • 0: Returns the date and time from the file. • 1: Returns only the file date. • 2: Returns only the file time.
Page 528 InduSoft Web Studio 0 Path not found 1 Path found Tag Name Expression Tag FindPath( "C:\WINNT\" ) Function Group Execution Windows Embedded Thin Client GetFileAttrib utFeiles Synchronous Supported Supported Supported −1 Error 1 Read only 2 Hidden 4 System 16 Directory 32 Archive 128 Normal 256 Temporary Tag Name Expression Tag GetFileAttributes( "C:\Readme.txt" ) Function Group Execution Windows Embedded Thin Client GetFileTime File Synchronous Supported Supported Supported