qwertylol 0 Report post Posted June 19, 2007 I got the ftp functions from herehttp://www.autoitscript.com/forum/index.ph...tpFileFindFirstand then I arranged it so here:#include <ftp.au3> Dim $s_Agent = "alarm" ;- Random name. ( like "myftp" ) Dim $l_AccessType ;- I dont got a clue what this does. Dim $s_ProxyName ;- ProxyName. Dim $s_ProxyBypass ;- ProxyByPasses's. Dim $l_Flags ;- Special flags. Dim $l_InternetSession ;- The Long from _FTPOpen() Dim $s_ServerName = "ftp.ftp.com" ;- Server name/ip. Dim $s_Username = "username" ;- Username. Dim $s_Password = "password" ;- Password. Dim $i_ServerPort = "" ;- Server port ( 0 is default (21) ) Dim $l_Service ; I dont got a clue what this does. Dim $l_Flags ;- Special flags. Dim $l_Context ;- I dont got a clue what this does. Dim $l_FTPSession ;- The Long from _FTPConnect() Dim $s_LocalFile = "a.txt" ;- The local file. Dim $s_RemoteFile = "a.txt" ;- The remote Location for the file. Dim $l_Flags ;- Special flags. Dim $l_Context ;- I dont got a clue what this does. Dim $ftp $l_InternetSession = _FTPOpen($s_Agent, $l_AccessType = 1, $s_ProxyName = '', $s_ProxyBypass = '', $l_Flags = 0) $l_FTPSession = _FTPConnect($l_InternetSession, $s_ServerName, $s_Username, $s_Password, $i_ServerPort = 0, $l_Service = 1, $l_Flags = 0, $l_Context = 0 ) _FTPPutFile($l_FTPSession, $s_LocalFile, $s_RemoteFile, $l_Flags = 0, $l_Context = 0)yet it doesn't work. what went wrong? Share this post Link to post Share on other sites
Jos 1,292 Report post Posted June 19, 2007 (edited) dejavu: Use DllOpen('wininet.dll') ... attached is the ftp.au3 I use... Edited June 19, 2007 by JdeB Visit the SciTE4AutoIt3 Download page for the latest versions - Beta files How to post scriptsource Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites