BATCH: FTP on a port different from port 21??
LezardMoo
Posted messages
614
Status
Member
-
LezardMoo Posted messages 614 Status Member -
LezardMoo Posted messages 614 Status Member -
Hello everyone !!!
I’m trying to automate file sending via FTP in a small batch but... it’s stuck!
In my batch, I have this line:
ftp -s:ftp.txt
In ftp.txt:
However, I keep getting a 501 error, which comes from the fact that I specify port 2100 for the connection, and it doesn’t like that...
The syntax is usually
open host.com
But my FTP is not on port 21 but on port 2100.
In CLI, it works normally if I do open host.com 2100, but not in the batch... (It’s totally twisted, merdows)
I’ve tried different ways but nothing works, impossible to connect to port 2100...
Any ideas, anyone?
Thanks in advance
Configuration: Windows 7 / Firefox 15.0.1
I’m trying to automate file sending via FTP in a small batch but... it’s stuck!
In my batch, I have this line:
ftp -s:ftp.txt
In ftp.txt:
open host.com 2100 <user> <pass> hash bin put "file.rar" bye
However, I keep getting a 501 error, which comes from the fact that I specify port 2100 for the connection, and it doesn’t like that...
The syntax is usually
open host.com
But my FTP is not on port 21 but on port 2100.
In CLI, it works normally if I do open host.com 2100, but not in the batch... (It’s totally twisted, merdows)
I’ve tried different ways but nothing works, impossible to connect to port 2100...
Any ideas, anyone?
Thanks in advance
Configuration: Windows 7 / Firefox 15.0.1