Remove dots from the path in .NET December 21, 2023 by Tarik string path = Path.GetFullPath("C:\\foo\\..\\bar"); // path = "C:\\bar" More Info