如何在C#中使用ROBOCOPY将文件上传到FTP位置

问题描述:







如何使用ROBOCopy将文件从本地复制到FTP位置。



请尽早提供解决方案。



提前致谢....



我尝试了什么:



我知道使用ROBOCopy从本地到共享位置的复制文件,但不要知道副本到FTP位置。

Hi,


How to copy the file from local to FTP Location using ROBOCopy.

Please provide solution as early as possible.

Thanks in Advance....

What I have tried:

I have idea on copy file from local to shared location using ROBOCopy, but don't know the copy to FTP Location.

你没有。 ROBOCOPY不适用于FTP服务器。它只适用于驱动程序字母和UNC路径。



对于使用不同命令行工具执行此类操作,您使用Process类启动您通常在CMD提示符中键入的命令行。
You don't. ROBOCOPY doesn't work with FTP servers. It only works with driver letter and UNC paths.

As far as doing something like that with a different command line tool, you're using the Process class to launch the command line you would normally type in a CMD prompt.