copy files from ftp to local error [duplicate]

2019-08-13 03:10发布

问题:

This question already has an answer here:

  • I can't upload a multiple files to FTP by batch script 3 answers

I try to copy a lot of files from my ftp server ftp://ftp.prodega.ch, so I created a file called code.txt with this text:

open ftp.prodega.ch
user
password
lcd E:\f2      
cd Bilder1     
get file1.jpg
bye

Then I execute the following command in the command prompt:

ftp -s:code.txt

The file file1.jpg is copying into local E:\f2 folder; I try to copy all files from the ftp folder Bilder1 using mget * instead of get file1.jpg but it doesn't work.

The first image is copied successfully, but the second image (using mget *) doesn't get copied and showed this result:

How would I be able to copy these files?

回答1:

Try entering this command into your command prompt:

ftp -i -s:code.txt