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