[英]Windows FTP batch file returns “200 type set to A” on mget command
I am trying to automate a FTP job using a Windows batch file. 我正在尝试使用Windows批处理文件自动执行FTP作业。 When the
mget *.zip
line in the FTP batch file is executed this message is displayed: 当执行FTP批处理文件中的
mget *.zip
行时,将显示以下消息:
200 type set to A
200型设为A
and no files are transferred. 并且没有文件传输。 How can I resolve this?
我该如何解决?
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 FtpCommand.txt
文件中的命令是
USER UserName
Password
cd /FtpFolder
lcd C:\WorkstationFolder
ascii
mget *.zip
After doing a ls
I get the below output 经过
ls
我得到以下输出
You are trying to download .zip
files from a directory, where there are no .zip
files. 您正在尝试下载
.zip
从一个目录,其中有没有文件.zip
文件。 So, nothing is downloaded. 因此,没有下载任何内容。
Maybe you wanted to download the .gz
files: 也许您想下载
.gz
文件:
mget *.gz
USER UserName Password cd /FtpFolder lcd C:\\WorkstationFolder ascii mget *.zip 用户名密码cd / FtpFolder lcd C:\\ WorkstationFolder ascii mget * .zip
try to put a 'ENTER' between command, eg: 尝试在命令之间放置“ ENTER”,例如:
USER UserName Password
cd /FtpFolder
lcd C:\WorkstationFolder
ascii
mget *.zip
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.