当我尝试通过FTP下载批处理文件时,问题出现了。
OPEN 192.168.0.1
test
password
lcd Download-dir
cd /filedir
BINARY
get *.txt
一切都很顺利,直到他试图找到文件的那一刻。在那一刻,他叫了
Error 550 File not Found.
当我尝试同样的
get Test.txt
It will work fine.
每个教程都使用*
作为通配符,但为什么它不适合我。
ftp.exe
中的get
命令不支持通配符。
您必须使用mget
命令:
mget *.txt