Question : Path.Combine with UNC network path

Hello,

Path.Combine work only with relative paths, as example:
string strPath1=@"C:\";
string strPath2="test.txt";
Path.Combine(strPath1,strPath2);

But I want the same function of Path.Combine with network Paths as example

string strPath1=@"\\127.0.0.1\";
string strPath2=@"\test\test.txt";
Path.Combine(strPath1,strPath2);

How can i make it best?

Can you help me?

Regards Reiner

Answer : Path.Combine with UNC network path

Random Solutions  
 
programming4us programming4us