From the Immediate Window in Visual Studio:
> Path.Combine(@"C:\x", "y")
"C:\\x\\y"
> Path.Combine(@"C:\x", @"\y")
"\\y"
It seems that they should both be the same.
The old FileSystemObject.BuildPath() didn’t work this way…
From the Immediate Window in Visual Studio:
> Path.Combine(@"C:\x", "y")
"C:\\x\\y"
> Path.Combine(@"C:\x", @"\y")
"\\y"
It seems that they should both be the same.
The old FileSystemObject.BuildPath() didn’t work this way…