Promotic
WikipediaLinkedInYoutubeTwitterFacebook

FileGetLastAccessTime - method of the Pm object

Description:
Returns the last access time to the file.
Syntax:
Date FileGetLastAccessTime(String sFile)
Parameters:
sFile(String) The file name with the path.

If a full path is not entered, then it is completed relative to the application folder.

It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.

Return values:
Returns the time of last access or (if the file does not exist or is not accessible) the zero value.
Note:
This method is not functional in Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var FileTime = Pm.FileGetLastAccessTime("#data:file.txt");
if (FileTime)
//File exists and the FileTime contains the time of last access
else
//File does not exist or is not accessible
PROMOTIC 9.0.15 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- FileGetLastAccessTime
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice