I have a batch file that builds an application, and then I want to upload it to an FTP server from the command line.
Considering I do the upload manually with FileZilla, is there a command line for it to upload files?
I am limited to Windows.
Answer
FileZilla does not have any command line arguments (nor any other way) that allow automatic transfer. See:
Command-line arguments (Client)
https://trac.filezilla-project.org/ticket/2317
Though you can use any other FTP client that allows automation.
For example, WinSCP:
https://winscp.net/eng/docs/guide_automation
A typical WinSCP script (script.txt
) for upload looks like:
open ftp://user:password@example.com/
put c:\files\*.* /home/user/
exit
To run the script use:
WinSCP.com /ini=nul /log=ftp.log /script=script.txt
The WinSCP can generate a script from an imported FileZilla session.
For details, see the guide to FileZilla automation.
(I'm the author of WinSCP)
No comments:
Post a Comment