Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a batch file that builds an application, then I want to upload it to a ftp server from 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.

share|improve this question
up vote 12 down vote accepted

FileZilla does not have any command line arguments (nor any other way) that allow automatic transfer. See:
https://wiki.filezilla-project.org/Command-line_arguments_(Client)
http://trac.filezilla-project.org/ticket/2317


Though you can use any other FTP client that allows automation.

For example, WinSCP:
http://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 /log=ftp.log /script=script.txt

The WinSCP 5.8 beta can generate a script from an imported FileZilla session.

For details, see a guide to FileZilla automation.

(I'm the author of WinSCP)

share|improve this answer

There is no command line for Filezilla to upload files - but you can use ftp (man ftp) or possibly curl (man curl) generally using a SSH connection.

On Linux you have much more access to options than on windows, but you could install cygwin to make Windows better.

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.

share|improve this answer

You can use Window's built-in FTP client to do this. You don't need Filezilla.

ftp
open *computer_name*
send *local_file* {remote file}
share|improve this answer
    
Can you specify the relevant FTP commands in a batch file? Or only interactively through the console? – Simon East Dec 14 '15 at 4:07
    
@SimonEast Yes, see here. – Malcolm Jan 15 at 16:57

You should be able to use a FTP command line program such as PSFTP. Please note PSFTP does not use passv mode and therefore requires a Data connection for LAN FTP

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.