copy files from server to server on the same LAN

  • Thread starter Thread starter Green
  • Start date Start date
G

Green

Hi,
I had a question about how to copy files from server to server on the
same LAN. Basically, i need to copy files from
"develope server" to the "test server", then eventually to the "production
server". But i don't know how to deal with
this. Do you have any example code or hint?

I appreciate in advance!
 
Green,

If the directories that the files reside in are available as network
shares, then you can use the static Copy method on the File class to copy
from one directory to another. Just make sure you use the UNC
representation of the path.

Hope this helps.
 
Hi Green,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to copy a file from one
machine to the other. If there is any misunderstanding, please feel free to
let me know.

I totally agree with Nicholas's answer. Furthermore, you also have to make
sure that you have to have write permission to that folder.

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top