2
I wonder if there is any way to transfer files on a local network without using the Socket Class in C#? and in terms of performance what is the fastest method of transferring files over a local network?
2
I wonder if there is any way to transfer files on a local network without using the Socket Class in C#? and in terms of performance what is the fastest method of transferring files over a local network?
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.
Browser other questions tagged c# .net socket networks
You are not signed in. Login or sign up in order to post.
Why don’t you transfer directly to file system using
File.Copy()
?– Jéf Bueno
Could you send me an example of an implementation.
– Victor Freitas
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.– Jéf Bueno
@jbueno Your comment probably boils down in the answer. Victor does not manipulate himself anymore.
– Ismael
It was a good response and I signaled the comment as very useful.
– Victor Freitas