Jump to content
Sign in to follow this  

FTPputfile, wont work.

Recommended Posts



I got a script which has to put a .htm file on the server.

but it doesn't seem to work.

this is the code( I know I included a FTP server + ID + PW, but I made that one to test it, and to show it to you guys, there is nothing on there.):

$__ftp_hWinInetDll = DllOpen('wininet.dll')
        If $__ftp_hWinInetDll == -1 Then
            ConsoleWrite("-- ERROR FROM FTP.au3: Unable to open WinInet.dll" & @LF)
            $__ftp_hWinInetDll = 'wininet.dll'
        $username = "jorsec1"
        $pass = "5171405"
        $Open = _FTPOpen("myftp")
        $Conn = _FTPConnect($Open, "jorsec1@login562.freehostia.com", $username, $pass)
        $Ftpp = _FtpPutFile($Conn, @ScriptDir & "/index.htm", "Index.htm")
                $Close = _FTPClose($Open)

So anyone knows whats wrong with this?

I did include FTP.au3... so don't say I forgot that xD

Hope anyone can help me Posted Image

this... is madness....


Posted Image


Edited by Pipeline

Share this post

Link to post
Share on other sites

Actually its still not working for me

It still does not upload the file to the server :S

I set a @error and everytime it gets activated.

Anymore idea's?


Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this