如何在C#中使用ROBOCOPY将文件上传到FTP位置 [英] How to upload file into FTP location using ROBOCOPY in C#

查看:241
本文介绍了如何在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.


这篇关于如何在C#中使用ROBOCOPY将文件上传到FTP位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆