Function EN Version 2.10

@GetOSFileModified

Misc OSFile System TimeDate

Syntax

@GetOSFileModified(OSPATH1);
@GetOSFileModified(OSPATHLIST1);

Description

Returns the time of the last modification of one OS file (OSPATH1) or multiple OS files (OSPATHLIST1).
A TDLIST is returned. At the position where the OS path of the file appears in OSPATHLIST1, the list contains the TD value of the last modification time of that OS file.
If an error occurs while determining the modification time of one or more elements, the corresponding element in the returned TDLIST is set to the value @AnyAllDay.
If TRACE mode is active (see @Trace), an error message is output on the server console and in the APILog.

Example: @GetOSFileModified(OSPATH1)

OSPATH1:="C:\\TEST.DAT";
TDList:=@GetOSFileModified(OSPATH1);

Returns a TDLIST with one element ([10.10.92 11.12.30]) if the file exists and its last modification time was [10.10.92 11.12.30].

Example: @GetOSFileModified(OSPATHLIST1)

OSPATHLIST1:="C:\\TEST.DAT":"C:\\TEST2.DAT";
TDList:=@GetOSFileModified(OSPATHLIST1)

Returns a TDLIST with two elements ([10.10.92 11.12.30]:[11.11.93 10.10.30]) if the files exist and their modification times were [10.10.92 11.12.30] and [11.11.93 10.10.30], respectively.

Note : This text was machine-translated and may contain inaccuracies.