file transfer using NetworkCredential
<p>While transferring the file from one machine to another machine using C#.Net without socket code is as follows:</p>

<pre><code>string filePath = "C:\\tags.txt";
try
{
    WebClient client = new WebClient();
    string uName = "myUserName", password ="myPassword";
    NetworkCredential nc = new NetworkCredential(uName, password); 
    Uri addy = new Uri("\\192.168.1.28\\Files\\ tags.txt");
    client.Credentials = nc;
    byte[] arrReturn = client.UploadFile(addy, filePath);
    Console.WriteLine(arrReturn.ToString());
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
} 
</code></pre>

<p>"192.168.1.28\Files\ tags.txt"-> this is another machine IP and location 
when I debug the error occured in the Uri Class. </p>

<p>Error is-> <code>Invalid URI: The format of the URI could not be determined.</code>  </p>

<p>Here I could send the file to target machine if the location is in share.<br>
Ii need to send a file to the corresponding location even if the folder is not shared.</p>

<p>Is the above code correct code?</p>
