WinSCP command-line passive mode

感情迁移 提交于 2019-12-06 11:43:11

You can specify the passive option in your open:

open ftp://user_and_pass_details:21 -passive=on|off

Your full script will become:

 option batch on

 option confirm off

 open ftp://user_and_pass_details:21 -passive=on

 cd /out/

 option transfer binary

 put C:\afile.text

 close

 exit

Please refer to: http://winscp.net/eng/docs/scriptcommand_open
(anyway, note that by default, the passive mode is active: http://winscp.net/eng/docs/ui_login_connection#connection)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!