前言:工作中可能会遇到以下情况,利用windows作为中转,来实现两台linux服务器的文件传输。 实现步骤:1、FTP上传和下载的bat脚本。 脚本分为两部分:可执行bat脚本和ftp命令文件; 可执行bat脚本:
ftp命令ftp.txt:
2、加入Windows定时任务(网摘): 【定时任务|开机启动】Windows Server 2008/2012 计划任务配置(任务计划程序)每分钟执行BAT 打开计划任务快捷方式(在 “管理工具”内): C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\Task Scheduler.lnk |