GetFullPath(Path: String): String;
Path - file or directory for which an absolute path should be obtained.
The GetFullPath method returns an absolute path for a specified string. An absolute path is returned by taking into account a work directory of an application, its existence on the disc is optional.
Sub Main;
Var
Path_File, s: String;
Begin
Path_File:="1.txt";
s:=Path.GetFullPath(Path_File);
End Sub Main;
After executing this example, the "s" variable contains an absolute path to the file 1.txt.
See also: