''SetLM'' Function

Top  Previous  Next

Sets the Last Modified Time of a given file or folder.

Syntax

SetLM(file-or-directory-name, time)

 

Parameters

file-or-directory-name

The name of the file or the directory whose Last Modified Time is to be set.

 
time
A long integer value. The return values of the date/time functions such as now(), parsedate() and incrdate() can be used in this parameter.
 

See Absolute or Relative Names.

Examples:

SetLM('documents/abc.doc',v:LM_TIME)

SetLM('c:\reports\report1.xls',now())