Page 1 of 1

connecting to filezila server with batch error

Posted: 2019-12-16 16:05
by BertD
When i run bij batch:
c:\windows\system32\ftp.exe -s:DosFtpFile.ftp

And i am calling the DosFtpFile.ftp:
open wibonftp.goconnectit.nl
ECHO USER>>username
ECHO PASSWORD>>password
put DosFtpFile.txt
quit

I am getting the folowing error:

D:\ftp>c:\windows\system32\ftp.exe -s:DosFtpFile.ftp
ftp> open wibonftp.goconnectit.nl
Connected to wibonftp.goconnectit.nl.
220-FileZilla Server 0.9.60 beta
220-Welkom bij de ftp server tbv Geodan van den Berg
220 (onderdeel van de GOconnecIT groep)
202 UTF8 mode is always enabled. No need to send this command.
User (wibonftp.goconnectit.nl:(none)):
331 Password required for echo user>>username

530 Login or password incorrect!
Login failed.
ftp>
ftp> put DosFtpFile.txt
530 Please log in with USER and PASS first.
530 Please log in with USER and PASS first.
ftp> quit
221 Goodbye

D:\ftp>pause

there are no blanks in the DosFtpFile.ftp file, what am i doing wrong?

Re: connecting to filezila server with batch error

Posted: 2019-12-16 21:06
by boco
The ECHO commands do not belong into your FTP script file. Simply put the username and password there.
open wibonftp.goconnectit.nl
username
password
put DosFtpFile.txt
quit