Root: IDirectoryInfo;
The Roop property returns information about a root directory.
Sub UserProc;
Var
Dir, RootDir: IDirectoryInfo;
d: DateTime;
Begin
Dir := New DirectoryInfo.Attach("c:\Temp\1");
If Dir.Exists Then
RootDir := Dir.Root;
d := RootDir.CreationTime;
End If;
Dispose Dir;
End Sub UserProc;
After executing this example, variable "d" contains creation date and time of a root directory of the disk C.
See also: