1.安装WinSCP
2.新建脚本test.txt
option confirm off open username:password@host put C: esta.zip /home/test/a.zipcloseexit
3.进入cmd,进入WinSCP目录,使用命令
winscp.exe /console /script=test.txt /log=log.txt