Merge directory names

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?= said:
How can I merge two directory names? First path is always absolute
and second is relative. For example:

1) c:\MyTest\Private
2) ..\Shared

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));



--
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/
 
Back
Top