How can I merge two directory names? First path is always absolute and second is relative.
For example:
1) c:\MyTest\Privat
2) ..\Share
And I need result: c:\MyTest\Share
=?Utf-8?B?SmFu?= wrote:
> How can I merge two directory names? First path is always absolute
> and second is relative. For example:
[quoted text clipped - 3 lines]
>
> And I need result: c:\MyTest\Shared
string par1 = @"c:\MyTest\Private";
string par2 = @"..\Shared";
string res =
System.IO.Path.GetFullPath(System.IO.Path.Combine(par1, par2));

Signature
Greetings
Jochen
Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
Do you need daily reports from your server ?
http://sourceforge.net/projects/srvreport/