简体   繁体   English

如何将文件/目录从我的计算机移动或复制到另一台计算机?

[英]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. 我在C#中有一个程序,可以通过压缩或不通过压缩在计算机的两个路径之间移动和复制文件和目录,但是我想在两台计算机之间进行此操作。 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 使用FTP组件在另一侧设置FTP服务器
  • Directly connect to the other machine using a UNC Path 使用UNC路径直接连接到另一台计算机
  • Use a SCP style system if the machine is a unix box 如果机器是unix盒子,请使用SCP风格的系统
  • 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. 我强烈建议您使用一个预先存在的协议,例如FTP,这样您就可以重用库,并且它可以促进与其他程序的互操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试将文件从我的计算机复制到同一网络上的另一台计算机 - Trying to copy a file from my computer to another computer on the same network 如何将文件从本地计算机复制到远程计算机? - How to copy file from a local computer to a remote computer? 如何将文件从需要身份验证的计算机复制到本地计算机? - How to I copy a file from a computer that requires authentication to my local machine? 如何将.NET aspx文件从一台计算机上的项目移动到另一台计算机上的同一项目 - How do I move a .NET aspx file from a project on one computer to the same project on another computer 如何将我的解决方案从共享文件夹移动到我的本地计算机? - How can I move my solution from a shared folder to my local computer? 如何从网络中的另一台计算机访问文件 - How to acess file from another computer in the network 热从 FTP 转移到我的计算机上的本地目录 C# - hot to transfer from FTP to local directory on my computer in C# C# File.Copy 从远程计算机到本地 - C# File.Copy from remote computer to local 如何在c#TreeView中解决主目录和“我的电脑” - How to address home directory and “my computer” in c# TreeView 如何使用c#从Active Directory中删除计算机帐户 - how to delete computer account from Active Directory using c#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM