18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

GetFileAttributes<br />

Reads the attributes of a specified file.<br />

Function Group Execution Windows Embedded Thin Client<br />

GetFileAttributes<br />

Synchronous Supported Supported Supported<br />

Syntax<br />

GetFileAttributes(strFile)<br />

strFile<br />

The file path and name of the file from which to read the attributes.<br />

Returned value<br />

−1<br />

Error<br />

1 Read only<br />

2 Hidden<br />

4 System<br />

16 Directory<br />

32 Archive<br />

128 Normal<br />

256 Temporary<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag GetFileAttributes( "C:\Readme.txt" )<br />

GetFileTime<br />

Reads the time and date the file was last modified.<br />

Function Group Execution Windows Embedded Thin Client<br />

GetFileTime File Synchronous Supported Supported Supported<br />

Syntax<br />

GetFileTime(strFileName,numFormat)<br />

strFileName<br />

numFormat<br />

The file path and name of the file to be read.<br />

A numeric flag specifiying the format of the returned data:<br />

• 0: Returns the date and time from the file.<br />

• 1: Returns only the file date.<br />

• 2: Returns only the file time.<br />

Returned value<br />

Returns the date and or time the file was last modified.<br />

Page 634<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!