
答案1
FileZilla 沒有任何允許自動傳輸的命令列參數(也沒有其他方式)。看:
命令列參數(客戶端)
https://trac.filezilla-project.org/ticket/2317
儘管您可以使用任何其他允許自動化的 FTP 用戶端。
例如,WinSCP:
https://winscp.net/eng/docs/guide_automation
典型的 WinSCP 上傳腳本 ( script.txt
) 如下所示:
open ftp://user:[email protected]/
put c:\files\*.* /home/user/
exit
若要執行腳本,請使用:
WinSCP.com /ini=nul /log=ftp.log /script=script.txt
WinSCP 可以產生腳本從一個導入的 FileZilla 會話。
有關詳細信息,請參閱FileZilla 自動化指南。
(我是WinSCP的作者)
答案2
您可以使用 Window 的內建 FTP 用戶端來執行此操作。您不需要 FileZilla。
ftp
open *computer_name*
send *local_file* {remote file}
答案3
您應該能夠使用 FTP 命令列程序,例如PSFTP。請注意,PSFTP 不使用被動模式,因此需要 LAN FTP 的資料連線。