客户端从服务器复制到同一服务器,无需往返?
这是受到 File.Copy() 是否可以通过网络将文件从网络共享复制到同一计算机上的另一个共享?
在 .NET 中,客户端是否可以让服务器复制文件服务器文件到同一服务器上的不同位置,而不通过客户端往返文件?
是否有对这种操作的内置支持?如果没有,您将如何启用这样的功能?
This is inspired by Does File.Copy() from a network share to another share on the same machine copy the file over the network?
Is it possible, in .NET, for a client to get the server to copy a server file to a different location on the same server without round tripping the file via the client?
Is there any in-build support for this kind of operation, and if not, how would you go about enabling such a thing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设它尚不存在,我将通过在远程计算机上安装新软件来启用它。 远程计算机上的软件将进行复制,我将(通过网络)与本机上的该软件进行通信。 我希望远程计算机上的软件作为服务运行。
可能已经有支持此功能的内置软件(我不知道远程计算机上安装了什么):例如,您是否安装并运行了 IIS? 例如,WebDAV 支持 COPY 命令。
Assuming that it doesn't exist already, I'd enable it by installing new software on the remote machine. The software on the remote machine would do the copying, and I'd communicate (over the network) with that software from this machine. I expect I'd want the software on the remote machine to run as a service.
There may be builtin software that supports this already (I don't know what installed on the remote computer): for example, do you have IIS installed and running? WebDAV, for example, supports a COPY command.