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

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

问题描述

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

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

<小时>

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

解决方案

你可以使用WinSCP,它支持脚本和TLS/SSL.

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

通过显式 TLS/SSL 下载文件的简单批处理文件(注意 ftpes://) 与 WinSCP 看起来像:

winscp.com/log=c:pathftp.log/command ^打开 ftpes://user:password@example.com/" ^获取/home/user/* c:destination" ^出口"

您可以拥有 WinSCP GUI 生成的批处理文件.p><小时>

对于调度,只需使用 Windows 调度程序.
有关详细信息,请参阅计划文件传输到 FTP 服务器.

(我是 WinSCP 的作者)

<小时>

上传也类似:使用 WinSCP 在 Windows 上安排自动 FTP 上传

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:pathftp.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)


Similarly for an upload: Schedule an automatic FTP upload on Windows with WinSCP

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

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