IDirectory.SetCreationTime

Syntax

SetCreationTime(Path: String; CreationTime: DateTime);

Parameters

Path - directory, which date and time of creation must be changed.

CreationTime - date and time that must be set.

Description

The SetCreationTime method changes date and time of creation of a directory passed by the Path parameter.

Example

Sub UserProc(sPath: String);
Begin
    If Directory.Exists(sPath) Then
        Directory.SetCreationTime(sPath, DateTime.Now);
    End If;
End Sub UserProc;

On executing the example it is checked if the directory specified in the sPath parameter is present in the file system. If the directory exists, the current date and time are set as date and time of its creation.

See also:

IDirectory