This is a follow up to FTP BAT file - Windows Scheduled Task.
I copied the FTP script, but I can't transfer the files to my local computer.
All I get is this (server address omitted):
331 Password required for ftpdemo. 230 User ftpdemo logged in. ftp> lcd C:\Temp\Test Local directory now C:\Temp\Test. ftp> mget ErrorLog\*.* 200 Type set to A. mget LogViewer.asp? quit ftp>
Here's the actual script:
open ftp.myserver.com ftpdemo pass lcd C:\Temp\Test mget ErrorLog\*.* quit
What do I need to fix?
used PROMPT, now it loops through all the files, but keeps saying the following:
200 port command successful 550 "file_name_here": no such file
and same goes for every file in the directory ... it lists all the files, so they ARE there, I have no idea what's wrong. Also, I use the same account that I use for GUI ftp, and permissions should not be an issue.
here's how i got it to work (thanks to dave lozinski's site):
open ftp.myserver.com ftpdemo pass lcd C:\Temp\Test cd /ErrorLog prompt mget *.* quit
basically I just had to change the directory on the server.