【发布时间】:2015-09-09 06:14:16
【问题描述】:
我想使用带有通用代理的 SOCKS5 连接将文件上传到 FTP。
我正在使用 Windows 服务器。我的.txt 我的.bat 实际上看起来像:
open proxyhost
proxyuser
proxypassword
user ftpuser@ftphost.de
ftppassword
bin
mput \\upload\path\to\*.pdf
quit
我正在打开.txt 文件:
ftp -i -s:"\\path\to\mytxt.txt" >"\\path\to\ftp.log"
find "226" "\\path\to\ftp.log" && goto finished || goto error
:finished
exit 0
:error
exit 1
现在的问题是:有没有办法在这个.txt 中使用 SOCKS5?
我在 Google 上一无所获。
也许你能帮帮我。非常感谢。
最好的问候
【问题讨论】:
-
built-in Windows FTP utility的描述中没有提到代理,它确实是一个非常原始的客户端。使用另一个支持代理和 socks5 的实用程序或 powershell script。投票转移到 superuser.com
标签: batch-file command-line proxy ftp socks