Windows – Downloading all files in a directory with ftp command

batchftpwindows

I am trying to download all of the files in a directory using the FTP command on Windows (Windows Server 2012 R2). Here is what I am running from the ftp command:

open myurl.com
myusername
mypassword

cd directoryIwantonExternalServer
lcd directoryIwantonLocalmachine
binary

mget *.*

Everything seems to work fine until the last line, when running mget *.*. This results in no output for an indefinite period. I am only trying to transfer as a test two text files.

Best Answer

To get indications of the process of download from ftp server you can enter command hash after entering username and password. You can in general enter the command anywhere before sending command mget

To avoid interactive questions about downloading next file (based on wildcard) you can use command prompt. This command act as switch, first execution turn it off, next turn it on and so on

Related Question