Gab*_*scu 28 windows ftp upload command-line filezilla
我有一个构建应用程序的批处理文件,然后我想从命令行将其上传到 FTP 服务器。
考虑到我使用FileZilla手动上传,是否有用于上传文件的命令行?
我仅限于 Windows。
Mar*_*ryl 31
FileZilla 没有任何允许自动传输的命令行参数(也没有任何其他方式)。请参阅:
命令行参数(客户端)
https://trac.filezilla-project.org/ticket/2317
尽管您可以使用任何其他允许自动化的 FTP 客户端。
例如,WinSCP:https :
//winscp.net/eng/docs/guide_automation
script.txt用于上传的典型 WinSCP 脚本 ( ) 如下所示:
open ftp://user:password@example.com/
put c:\files\*.* /home/user/
exit
Run Code Online (Sandbox Code Playgroud)
要运行脚本,请使用:
WinSCP.com /ini=nul /log=ftp.log /script=script.txt
Run Code Online (Sandbox Code Playgroud)
WinSCP 可以从导入的 FileZilla 会话生成脚本。
有关详细信息,请参阅FileZilla 自动化指南。
(我是 WinSCP 的作者)
| 归档时间: |
|
| 查看次数: |
130859 次 |
| 最近记录: |