How can one with minimal effort (using some already existing facility, if possible) convert paths like c:\\aaa\\bbb\\..\\ccc to c:\\aaa\\ccc?
c:\\aaa\\bbb\\..\\ccc
c:\\aaa\\ccc
Canonicalization is one of the main responsibilities of the Uri class in .NET.
var path = @"c:\aaa\bbb\..\ccc"; var canonicalPath = new Uri(path).LocalPath; // c:\aaa\ccc