如何在Windows上安排自动FTP下载? [英] How to schedule an automatic FTP download on Windows?

查看:185
本文介绍了如何在Windows上安排自动FTP下载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用用户名,密码,隐式TLS加密和端口号连接到主机,以便每天在Windows Server标准下将文件下载到文件夹。是否有第三方命令行应用程序,我可以下载,安装和使用(最好是免费的)?我不确定这是否可以通过Windows ftp 完成,如果可以,可以在批处理文件中完成吗?



我正在尝试NcFTP,但我不确定它是否支持加密。






特定的凭据,我无法控制服务器。我只有关于如何通过TLS访问和下载FileZilla客户端的文件的说明。我需要安排一个为我完成这项工作的例程,因为我不想每天手动执行此操作。我可以在这里管理自己,我只需要一个可以通过命令行来完成这项工作的工具。 您可以使用WinSCP ,它支持脚本和TLS / SSL。



请参阅自动将文件传输到FTP服务器



一个简单的批处理文件通过显式TLS / SSL下载文件(注意 ftpes:// )与WinSCP类似:

  winscp.com /log=c:\path\ftp.log/命令^ 
打开ftpes:// user: password@example.com/^
get / home / user / * c:\destination\^
exit

您可以使用由生成的批处理文件WinSCP GUI






对于日程安排,只需使用Windows Sch eduler。

有关详细信息,请参阅安排文件传输到FTP服务器



(我是WinSCP的作者)


I need to connect to a host with username, password, implicit TLS encryption and port number to download files to a folder daily on windows server standard. Is there a third party command-line application that I could download, install and use for this (preferably free)? I'm not absolutely sure if this could be done with Windows ftp and if it can, could it be done in batch file?

I am trying NcFTP but I'm not sure if it supports encryption either.


I was given specific credentials, I have no control over the server. I have only instructions on how to access and download the files with FileZilla client over TLS. I need to schedule a routine that does this job for me since I don't want to manually do this every day. I can manage myself on this I only need a tool that could do this job over command-line.

解决方案

You can use WinSCP, it supports both scripting and TLS/SSL.

See automating file transfers to FTP server.

A simple batch file to download files over an explicit TLS/SSL (note the ftpes://) with WinSCP looks like:

winscp.com /log=c:\path\ftp.log /command ^
    "open ftpes://user:password@example.com/" ^
    "get /home/user/* c:\destination\" ^
    "exit"

You can have the batch file generated by WinSCP GUI for you.


For scheduling, simply use the Windows Scheduler.
For details see scheduling file transfers to FTP server.

(I'm the author of WinSCP)

这篇关于如何在Windows上安排自动FTP下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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