I load data from a Database on another PC in local network , and it works perfectly fine.
I just enter server name and db path and it works.
Now i am also looking for latest modified file in the folder on the server ,it works fine on local pc but when i use a server name plus path , it generate that path concatenated with the executable folder path.
string tmpPath=string.Empty;
if (serverName != "")
{
tmpPath = "\\" + serverName + "\\" + TrackingPath + "\\u00" + ID;
}
And after this i simply read the folder to get latest modified file.
But the path becomes ....Debug\servername\trackingpath..... which is wrong.
EXAMPLE
Servename=testServer
TrackingPath= TmpFolder\SharedFolder\TrackingFolder
So according to my code it should become \\testServer\\TmpFolder\SharedFolder\TrackingFolder
but instead it make it project....\Debug\\\testServer\\TmpFolder\SharedFolder\TrackingFolder
So how can i read this folder from testserver