Transferring files over a network C #

2

I wonder if there is any way to transfer files on a local network without using the C # Socket Class? and in terms of performance what is the fastest method of transferring files on a local network?

    
asked by anonymous 13.01.2017 / 20:05

1 answer

3

You can use File.Copy

File.Copy(@"C:\Pasta\Arquivo.txt", @"\192.168.25.10\Pasta-Compartilhada\Arquivo.txt");

Obviously it will only work if you have a shared folder and the user has access to the folder.

    
17.01.2017 / 18:45