Spikeedoodles Posted December 22, 2014 Share Posted December 22, 2014 (edited) Hi all! So I've been playing around with FTP on AutoIT (Just discovered!) and keep running into an error. Here is the code: $FTPIP="ftp.xxxxx.com" ;FTP IP/Hostname $FTPUser="testuser@xxxxxxxx.com" ;FTP Username $FTPPass="xxxxx" ;FTP Password $FTPPort="21" ;FTP Port $ftp=_FTP_Open ("FTPSess") $ftpconnect=_FTP_Connect ($ftp, $FTPIP, $FTPUser, $FTPPass, $FTPPort) _FTP_FilePut ($ftpconnect, 'WindowsUpdate.txt', '\test') $err=_WinAPI_GetLastError() _FTP_Close($ftp) ConsoleWrite (@CRLF&$err&@CRLF) I'm getting an error of 12003, which according to the MSDN is either a false positive or something with flags. I'm not using any flags and the file isn't uploading, so that is where I'm currently stuck. I've been searching around and really can't find anything useful, so any help is appreciated! I'm attempting to upload to a GoDaddy hosted FTP server, if that helps at all. Edited December 22, 2014 by Spikeedoodles Link to comment Share on other sites More sharing options...
Jfish Posted December 22, 2014 Share Posted December 22, 2014 (edited) Looks like you have your port number in the passive parameter field ... port comes after the passive parameter ... Edited December 22, 2014 by Jfish Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now