How are paths determined on a remote machines?
I have been assigned a network loaction. Let's call it \\wassup\test1
I assume that wassup is the name of the computer. The question I have is this. How can I determine what the local path from the point of view of the remote machine would be for "test1". For example, how would I know if it is c:\test1 or d:\test1 ?
Loading

Abhimanyu K VatsaPosted Jun 12, 2010, 8:40 AM
There are lots of way to know the exact path (full path). If you are using hosting sever then you just have to ask them or you want to know it yourself then use this in code behind
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Server.MapPath("."));
Response.Write("
");
Response.Write(Server.MapPath("test.asp"));
Response.Write("
");
Response.Write(Server.MapPath("script/test.asp"));
Response.Write("
");
Response.Write(Server.MapPath(""));
}
I hope it will help you, if not see the attachment.