Does File.Copy() from a network share to another share on the same machine copy the file over the network?

前端 未结 5 1031
时光取名叫无心
时光取名叫无心 2021-01-11 13:12

If my .NET client uses System.IO.File.Copy to copy a file from \\server1\\share1\\file1.txt to \\sever1\\share2\\file2.txt

5条回答
  •  广开言路
    2021-01-11 14:11

    The file contents must go through the machine performing the Copy operation. The only way around this is to run programs on the target machine(s) that perform the transfer without the client machine in the middle. such as FXP which uses FTP to transfer server to server.
    However, opening up this pathway may also open a security loophole and I suspect many admins would be reluctant to allow this.

提交回复
热议问题