Why Does Path.Combine not properly concatenate filenames that start with Path.DirectorySeparatorChar
- by Kris Erickson
In the Immediate Window
? System.IO.Path.Combine(@"C:\test",@"test")
"C:\\test\\test"
? System.IO.Path.Combine(@"C:\test",@"\test")
"\\test"
It seems that they should both be the same.
The old FileSystemObject.BuildPath() didn't work this way...