VB.NET
System.Environment.CurrentDirectory = "C:\Windows\System"
Console.WriteLine(System.IO.Path.GetFullPath("..\file.txt"))
C#
System.Environment.CurrentDirectory = "C:\\Windows\\System";
Console.WriteLine(System.IO.Path.GetFullPath("..\\file.txt"));