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.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Though you can use any other FTP client that allows automation.
For example, WinSCP:
A typical WinSCP script (
script.txt) for upload looks like:
open ftp://user:firstname.lastname@example.org/ put c:\files\*.* /home/user/ exit
To run the script use:
WinSCP.com /ini=nul /log=ftp.log /script=script.txt
For details, see the guide to FileZilla automation.
(I'm the author of WinSCP)
On Linux you have much more access to options than on windows, but you could install Cygwin to make Windows better.
I hope this helps. Learning the command line is very time-saving - there are things you can do with it that would take ages using a GUI.
You should be able to use an FTP command-line program such as PSFTP. Please note PSFTP does not use passive mode and therefore requires a data connection for LAN FTP.