简体   繁体   中英

How to move or copy a file/directory from my computer to ather computer?

I have a program in C# which i can move and copy files and directories by compress or by not compress between two path in a computer, but i want to do this between two computer. I want to use as target path of other computer's driver. How can i do this?

Thanks for your helps,

Theres a couple of ways you could do this,

  • Setup a FTP Server on the other side using a FTP component
  • Directly connect to the other machine using a UNC Path
  • Use a SCP style system if the machine is a unix box
  • Setup a file transfer protocol of your own (ie send a bytestream over the network).

I would strongly recommend using a pre-existing protocol though, such as FTP, that way you can re-use libraries and it promotes inter-op with other programs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM