Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 want to download all of my remote files and folders from an ftp server to my local machine using the command line or a '.bat' file.

share|improve this question

You could use a PowerShell option to perform this task a premade function already exist Here.

All you would need to run is:

Get-FTPFile -Source "ftp://server/path" -Target "C:\temp" -UserName "Username" -Password "P@ssw0rd"

share|improve this answer

There is an command-line FTP client which comes with Windows (at least XP). I think it is called just ftp. Here (in the ftp link) is its documentation on the Microsoft web site (at least for the Windows XP version).

share|improve this answer

You can try using wget for windows and enter it's path into your system environmental variables.

It's very lightweight and it won't be a bad utility for your system if it's something you want.

share|improve this answer

It would be easiest to use an FTP client like FileZilla. You can use it to log into the FTP account, select a local folder, select the files in the remote folder, then simply drag-and-drop them to the local folder. Moreover, if you lose the connection, you can try again later in the exact same way, but when you get prompted about some files already existing (it’ll ask if you want to overwrite the existing files), you can select to ignore/skip it and all further files that exist. That way you can make sure to get all of the files and not worry about having to do it in one go.

share|improve this answer
-1 he said cmd or bat and you speak of drag and drop. You should've said this doesn't answer it, and perhaps written it in a comment. – barlop Sep 3 '11 at 21:03
@barlop, I clearly said it would be easiest. Re-read the question; he says nothing to indicate that the command-line is actually required, so using a GUI would indeed be easier. – Synetech Sep 3 '11 at 22:35
He said via cmd or bat file, you think that can mean GUI? – barlop Sep 4 '11 at 1:05
I know what he said, but that doesn’t make it a necessity. Once again, I clearly said that using a GUI would be easier, so it is up to him to expound on their requirements and clarify if a CLI is actually needed. – Synetech Sep 4 '11 at 18:10
What you mean is it's up to him if he wants to change his question to include how to do it in a GUI(an unlikely question since it's fairly obvious, especially to somebody that can ask the question he did). expounding his requirements to include GUI would be different to what he asked, and would be changing the question. You are answering a different question. It's like if somebody asks How do I do X in Y, and you tell him how to do X in Z. It's a suggestion rather than an answer. – barlop Sep 4 '11 at 23:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .