I'm hoping there is a built in .NET method to do this, but I'm not finding it.
I have two paths that I know to be on the same root drive, I want to be able to get a relative path from one to the other.
string path1 = @"c:\dir1\dir2\";
string path2 = @"c:\dir1\dir3\file1.txt";
string relPath = MysteryFunctionThatShouldExist(path1, path2);
// relPath == "..\dir3\file1.txt"
Does this function exist? If not what would be the best way to implement it?