Apologies for stepping in here, but I think I know why you're having aproblem running the script provided.
My guess is, you are trying to run the script from scancode in as an AHK script? But what he has provided you is a script to run as a WINDOWS batch or cmd file, its NOT an AHK script.
You will need to run from the command line, or ideally create a batch file and run that. I have attached it to this message (extract from the zip file). Open the attached file with NOTEPAD, edit the settings such as server name etc so:
ftp.myftpserver.com to your ftp servername
myusername to your ftp username
mypassword to your ftp password
Try that and see if thats any better.
Apologies if I have mis-understood everyone!