Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

4 Answers 4

You could use a PowerShell option to perform this task a premade function already exist Here. http://powershell.com/cs/media/p/804.aspx

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.

http://users.ugent.be/~bpuype/wget/

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

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.