I\'m using Path.Combine like so:
Path.Combine(\"test1/test2\", \"test3\\\\test4\");
The output I get is:
test1/test2\\test3\\te
If you need your result to have forward slashes instead of backward slashes, and if your first path component is absolute (i.e. rooted) path, you could actually combine it using the Uri
class:
string CombinedPath = new Uri(new Uri("C:/test1/test2"), "test3\\test4").AbsolutePath;
Note that this won't work if the first component is relative path too.