Copy file from system to system -c#

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: senthil Kumar via .NET 247 (anonymous_at_dotnet247.com)
Date: 09/17/04


Date: Fri, 17 Sep 2004 11:11:21 -0700


(Type your message here)

--------------------------------
From: senthil Kumar
Hello
      Im using C# i tried to Copy a file from my system to another ,here the file what im trying to copy rest in a folder/directory which is a shared one.but im unable to copy the file .for copy it in local it works fine.I heard from the other side that network driver is to be mapped .what should i do to map the network driver.im using 1.0.3705 version of .net
the code whwt i tried is as follows.
private void b1_Click(object sender, System.EventArgs e)
                {
sour=@"\\\\srini\\c:\\hello9.txt";
 dest=@"\\\\pushpa\\d:\\hello.txt";
File.Copy(sour,dest,true);
                }
can any one help with code sample thanz in advance.

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>C67OG8gcQEybGgSemkZLdA==</Id>