Could be one of the following two things.
1) You're using forward-slashes instead of back-slashes for the
network path - don't know if that will work or not.
2) Make sure the user that this application is running in context of
has the ability to see the "c" share on the computer.

I'm not sure about either of those answers for this specific error,
but at least it's a start.

On Jun 18, 6:35 am, yogs <[email protected]> wrote:
> Hi,
> I am trying to copy a file using File.Copy as follows:
> File.Copy("C:\Documents and Settings\Chains\Desktop\config.txt", "c:
> \backup1\aa.txt", True)
>
> it works fine.
>
> But when I am giving network path of localhost
> File.Copy("C:\Documents and Settings\Chains\Desktop\config.txt", "//
> comp2/c/backup1/aa.txt", True)
>
> Its giving error: network path not found.
>
> Please help me to solve this problem, as I want a remote transfer of
> file.
>
> Thanks,
> Yogs

Reply via email to