我正在使用FileZilla (图形用户界面)从FTP服务器下载文件。谁能告诉我从FTP服务器下载文件到本地文件系统的命令行参数?
发布于 2015-01-19 19:13:34
FileZilla没有任何允许自动传输的命令行参数(也没有任何其他方式)。
请参见:
FileZilla Client command-line arguments
https://trac.filezilla-project.org/ticket/2317
不过,您可以使用任何其他允许自动化的FTP客户端。
ftp.exe (使用其get命令)。虽然Windows ftp.exe不支持被动模式,但由于无处不在的防火墙和NAT,使其在通过互联网连接时毫无用处。
- GUI: winscp.exe ftp://user:password@host/path/file.ext
您将看到一个对话框,您可以在其中选择要将文件下载到的目录。请参阅https://winscp.net/eng/docs/commandline
- ftp://user:password@host/“(将命令放入.bat文件):winscp.com /command ^ "open path^ "get /path/file.ext c:\”^“退出”
请参阅https://winscp.net/eng/docs/guide_automation
- WinSCP甚至可以从imported FileZilla session generate a script。
有关详情,请参阅guide to FileZilla automation。
(我是WinSCP的作者)
发布于 2017-07-09 18:11:10
FileZilla确实支持一些用于上传和下载文件的基本命令行选项。并不是所有选项都有文档记录。你可以下载一个带有"-d源文件目标目录“选项的文件
示例(下载):
filezilla.exe -d ftp://user:pass@ftp.myserver.com/folder/* "c:\downloads\" /overwrite /close 上传示例():
filezilla.exe -u "c:\temp\samplefile.exe" ftp://user:pass@ftp.myserver.com/folder /overwrite /close /close --将在下载/上载完成后关闭图形用户界面
/overwrite --将覆盖目标中的文件,而不提示用户
您也可以从站点管理器连接到站点,例如-- site ="0/site1“。
下面是参考站点,其中包含更多示例,包括支持该功能的FileZilla版本(2.32 / 3.1)的下载链接。
FAQ Link
FileZilla Download link
https://stackoverflow.com/questions/28022567
复制相似问题