I am trying to put together a really simple batch file that I can use to upload a file from a Windows machine via FTP. I'm sure I am doing something that is quite obviously wrong to someone who writes stuff like this every day, but I can't work out.
My script looks like this:
However, I get a "500 unable to service PORT commands" error.
The hosting company (Awardspace) have an extensive set of FAQ that states that all FTP clients must be set to Passive for transfers. Yet, if I do this line by line in cmd, it clearly states "Entering passive mode"....
Can anyone see an obvious mistake?
Thanks in advance for your time and assistance,
@ftp -i -s:"%~f0"&GOTO:EOF
!:--- FTP commands below here ---