使用WinSCP上传文件到linux系统

1.安装WinSCP

2.新建脚本test.txt

option confirm off
open username:password@host 
put C:\test\a.zip /home/test/a.zip
close
exit

3.进入cmd,进入WinSCP目录,使用命令

winscp.exe /console /script=test.txt /log=log.txt

 

posted @ 2017-02-15 13:32  胡青  阅读(1730)  评论(0)    收藏  举报