File transfer on LAN..........
-
Hello friends, I have to create an application through which client can take backup of other machines on server machine(in LAN). So primarily I want to create server application which can copy simple text file from client machines(in LAN) and save them on server machine. I am new in .net and not getting how I should start?........I hope some experts can help me out. Please help me to solve this situation it's urgent..... Thanks, Nagraj.
-
Hello friends, I have to create an application through which client can take backup of other machines on server machine(in LAN). So primarily I want to create server application which can copy simple text file from client machines(in LAN) and save them on server machine. I am new in .net and not getting how I should start?........I hope some experts can help me out. Please help me to solve this situation it's urgent..... Thanks, Nagraj.
The simplest method would probably be to do something like:
File.Copy("\\\\pc1\\c$\\textfile1.txt", "\\\\server1\\backup$\\pc1textfile.txt">
Where pc1 is source pc and server1 is the server name. You might need to enumerate a few folders or files to determine if they exist. Good starting points are:File.Exists
,Directory.GetFiles
andDirectory.GetSubFolders
. Any help? Eitsop -
The simplest method would probably be to do something like:
File.Copy("\\\\pc1\\c$\\textfile1.txt", "\\\\server1\\backup$\\pc1textfile.txt">
Where pc1 is source pc and server1 is the server name. You might need to enumerate a few folders or files to determine if they exist. Good starting points are:File.Exists
,Directory.GetFiles
andDirectory.GetSubFolders
. Any help? EitsopThanks, As you suggest I find the solution in same direction. regards, Nagraj