Hello Everyone
I want to code to transfer a file from one computer to another computer through network in c#
Can anyone help me
Thanks In Advance
Hi ashhadsaud,
You need to use
File.Copy(string sourceFileName, string destinationFileName)
Ex.
File.Copy("D:\test.txt",@"\\server\folder$\test.txt");
Note: You must use full path for both files.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.