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

前端 未结 5 1027
时光取名叫无心
时光取名叫无心 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:08

    If it's possible to do a move instead of a copy, that should happen instantly. Otherwise you need to put a service on the target machine so you can call it remotely.

提交回复
热议问题