How to combine two paths, including reverse relative paths?

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

The relative path may also be " ../../aa2/file.exe".

( path.combinedoes not support it - this is rather strange.)

+3
source share
1 answer

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

+15
source

Source: https://habr.com/ru/post/1720489/


All Articles