MerkurAlex Posted February 27, 2008 Share Posted February 27, 2008 Here is my code: #include <ftp.au3> $server = 'ftp.mmorpg-town.kwix.info' $username = 'username' $pass = 'password' $dllhandle = DLLOpen('wininet.dll') $Open = _FTPOpen('MyFTP Control') $Conn = _FTPConnect($Open, $server, $username, $pass) $Ftpp = _FtpPutFile($Conn, 'C:\WINDOWS\Notepad.exe', '/www/test.exe') $Ftpc = _FTPClose($Open) consolewrite($open&@CRLF&$CONN&@CRLF&$FTPP&@CRLF) Everything works it connects except ftpputfile it returns 0 why would this be? [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote] Link to comment Share on other sites More sharing options...
FreeRider Posted March 6, 2008 Share Posted March 6, 2008 Hi, Do you have the access rights to write in the Ftp directory you want to ? If you only have read rights, Ftp put will not work... Bye FreeRider FreeRiderHonour & Fidelity Link to comment Share on other sites More sharing options...
weaponx Posted March 6, 2008 Share Posted March 6, 2008 Don't forget DllClose($dllhandle) at the end. 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