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 the example, the "d" variable contains creation date and time of the Temp folder.
See also: