tags:

views:

80

answers:

1

I have an absolute path, and a relative path, and I want to combine the two, is there any built-in way?

The relative path can be as well "../../aa2/file.exe".

(path.combine does not support it - which is pretty bizarre by itself.)

+7  A: 

Try Path.GetFullPath(Path.Combine(abs, rel))

Shay Erlichmen
wow! would never thought about it.. but I hope it's fast, because from the glance at the code of it at reflector, it does quite a work with windows..
Itay