Promotic
WikipediaLinkedInYoutubeTwitterFacebook

FileGetLastWriteTime - method of object Pm

Description:
Returns the last write time into the file.
Syntax:
FileGetLastWriteTime(sFile As String) As Date
Calling:
t = Pm.FileGetLastWriteTime(sFile)
Parameters:
sFile(String) The file name with the path. If a full path is not entered, then it is completed relatively according to the application file folder.

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

Return Values:
Returns the time of last write or (if the file doesn't exist or is not accessible) the zero value.
Note:
This method is not functional for Web panels in JavaScript language (and therefore it is not working in Web panels).
Example:
VBScriptSelect and copy to clipboard

Dim FileTime
FileTime = Pm.FileGetLastWriteTime("#data:file.txt")
If FileTime Then
  'File exists and the FileTime contains the time of last write
Else
  'File doesn't exist or is not accessible
End If
PROMOTIC 9.0.0 SCADA system documentation - MICROSYS, spol. s r.o.

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