ITSky8 Posted March 7, 2008 Posted March 7, 2008 Hello! Why the following code doesn't work? And how to check the status of the FTP connection? e.g. If @error Then Failed("Open") If @error Then Failed("Connect") If @error Then Failed("Upload") Also doesn't work, why? Func FTP_File_Upload() $server = '127.0.0.1' $username = 'test' $pass = 'test' $Open = _FTPOpen('MyFTP Control') If @error Then Failed("Open") $Conn = _FTPConnect($Open, $server, $username, $pass,21,1, 0x08000000,0) If @error Then Failed("Connect") $Ftpp = _FtpPutFile($Conn, 'd:\temp\test.txt', 'temp/test.txt') If @error Then Failed("Upload") $Ftpc = _FTPClose($Open) EndFunc
Zedna Posted March 7, 2008 Posted March 7, 2008 $dllhandle = DllOpen('wininet.dll') $Open = _FTPOpen ('MyFTP Control') Resources UDF ResourcesEx UDF AutoIt Forum Search
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