sensalim Posted December 26, 2007 Share Posted December 26, 2007 (edited) I have (username).freehostia.com It's not great but it works and it's free. When I do ftp from start > run > cmd It works fine... but when I use ftp.au3 (found on example scripts section), ftpopen() works (returns non zero) but ftpconnect() does not. It returns 0. I ensure the password and username are all correct. My code: $server = ... $username = ... $pass = ... $Open = _FTPOpen('MyFTP Control') $Conn = _FTPConnect($Open, $server, $username, $pass) ^this one returns zero How do I fix this? Thanks! Edited December 26, 2007 by sensalim Link to comment Share on other sites More sharing options...
ficofico Posted December 26, 2007 Share Posted December 26, 2007 I've tried many ftp script here without success................ I know that it's not the same, but if you want a simple freeware ftp program, you can download this,it works perfectly. With autoit you can create a script to upload a file using the tool in "hide" mode.ftp utility Link to comment Share on other sites More sharing options...
Zedna Posted December 26, 2007 Share Posted December 26, 2007 (edited) Read all posts in FTP UDF topic! You missed DllOpen('wininet.dll') $dllhandle = DllOpen('wininet.dll') $Open = _FTPOpen ('MyFTP Control') ... _FTPClose ($Open) DllClose($dllhandle) Edited December 26, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
sensalim Posted December 26, 2007 Author Share Posted December 26, 2007 Works! Thank you! 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