I'm running a batch file that calls a script from a text file but it's not retrieving the files I want.
DownloadData.bat
ftp -v -i -s:FTPscript.txt 192.168.50.50
FTPscript.txt
username
password
lcd "c:\temp"
cd /Downloads
pwd
binary
mget "*.csv"
disconnect
bye
Result
C:\temp>ftp -v -i -s:FTPscript 192.168.50.50 User (192.168.50.50:(none)): ftp> lcd c:\temp Local directory now C:\temp. ftp> cd /Downloads ftp> pwd 257 /Downloads/ is the current working directory. ftp> binary ftp> mget "*.csv" Cannot find list of remote files. ftp> disconnect ftp> bye
What am I doing wrong? This may be irrelevant but I am running this script off a virtual machine using windows 10 hyper-v. The VM is windows 7.
edit 2021-05-14--- Couldn't figure it out so I am using winSCP instead which is working. Thanks for the responses everyone!