0

I am trying to automate a FTP job using a Windows batch file. When the mget *.zip line in the FTP batch file is executed this message is displayed:

200 type set to A

and no files are transferred. How can I resolve this?

Output after execution of mget *.zip

The file was working previously before I changed something.

The batch file command is

ftp -n -i -s:FtpCommands.txt not.a.real.ftphost

The commands in the FtpCommand.txt file are

USER UserName
Password
cd /FtpFolder
lcd C:\WorkstationFolder
ascii
mget *.zip

After doing a ls I get the below output

LS output

2
  • Issue an ls command and show us an output. Apr 12, 2016 at 9:10
  • updated original question with the output of the ls command. Apr 13, 2016 at 2:16

2 Answers 2

1

You are trying to download .zip files from a directory, where there are no .zip files. So, nothing is downloaded.

Maybe you wanted to download the .gz files:

mget *.gz
-1

USER UserName Password cd /FtpFolder lcd C:\WorkstationFolder ascii mget *.zip

try to put a 'ENTER' between command, eg:

USER UserName Password 
cd /FtpFolder 
lcd C:\WorkstationFolder
ascii
mget *.zip
1
  • 1) there's a new line (enter) already 2) were it not, you would not be authenticated and all commands would be failing accordingly. Apr 12, 2016 at 9:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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