FileGetCreationTime - method of the Pm object
Description:
Returns the creation time of the file.
Syntax:
Date FileGetCreationTime(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 or folders. |
---|
Return value:
Returns the time of creation or (if the file does not exist or is not accessible) the zero value.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var tFileTime = Pm.FileGetCreationTime("#data:file.txt");
if (tFileTime)
{
// File exists and the FileTime contains the time of creation
}
else
{
// File does not exist or is not accessible
}
Dim tFileTime
tFileTime = Pm.FileGetCreationTime("#data:file.txt")
If tFileTime Then
' File exists and the FileTime contains the time of creation
Else
' File does not exist or is not accessible
End If