how to get files from one PC to another using c#.net?
Posted
by shruti
on Stack Overflow
See other posts from Stack Overflow
or by shruti
Published on 2010-03-24T09:06:55Z
Indexed on
2010/03/24
11:43 UTC
Read the original article
Hit count: 260
im using c#.net..i want to get the files that are on the server PC to my PC..both the PCs are connected through network.. i have given IP address of that PC in the path...but its not copying the files to my folder. im using the following code ...but its not working..kindly help me out..
File.Copy(Path.GetFileName(sourceFile), Path.GetDirectoryName(targetpath));
in sourceFile i have given IP address + folder path of the server PC and in the targetpath i have given the path of the folder of my PC to which i want to copy the files..
© Stack Overflow or respective owner