For example with WinSCP FTP client, you can use the following batch file (.bat):WinSCP.com /command ^ "open ftp://anonymous:[email protected]/ -rawsettings ProxyMethod=3 ProxyHost=proxy ProxyUsername=username ProxyPassword=password" ^ "cd /pub/merged/3B42RT" ^ "ls" ^ "exit"请参见使用WinSCP编写脚本的指南和将Windows FTP脚本转换为WinSCP脚本的指南.以上代码用于HTTP代理.如果使用其他代理类型,请相应地更改ProxyMethod设置.请参见 https://winscp.net/eng/docs/rawsettings The above code is for an HTTP proxy. If you use a different proxy type, alter the ProxyMethod setting accordingly. See https://winscp.net/eng/docs/rawsettings尽管更容易的是在WinSCP GUI中配置连接,然后将其生成脚本模板为您.Though easier is to configure the connection in WinSCP GUI and then have it generate a script template for you. (我是WinSCP的作者) 这篇关于在Windows 7中通过命令提示符访问代理后面的FTP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-20 21:34