我试图在上传新文件到FTP的过程中实现一些自动化,这些文件是在本地目录中添加到服务器中相同的目录中的。
不管怎样,我能让这一切成为可能吗?请帮帮我。我会很感激的。
谢谢!
发布于 2016-06-03 06:08:53
只需使用任何支持同步的命令行Windows客户端。
winscp.com /log=ftp.log /command ^
"open ftp://username:password@ftp.example.com/" ^
"synchronize remote c:\local\path /remote/path" ^
"exit"并根据您的需求,循环批处理文件或在Windows调度器中调度它。
对于实时同步,您也可以使用命令.
winscp.com /log=ftp.log /command ^
"open ftp://username:password@ftp.example.com/" ^
"keepuptodate c:\local\path /remote/path" ^
"exit"(我是WinSCP的作者)
https://stackoverflow.com/questions/37603763
复制相似问题