Jump to content

Recommended Posts

Posted

I have inputted correct code for FTP but I get nothing on my server.

#include <FTPEx.au3>

Local $sServer = 'ftpserver'
Local $sUsername = 'username'
Local $sPass = 'pass'

Local $hOpen = _FTP_Open('MyFTP Control')
Local $hConn = _FTP_Connect($hOpen, $sServer, $sUsername, $sPass)
_FTP_FilePut ( $hConn, @ScriptDir & '\FTP.au3' , '/FTP.au3' ,0 ,0 )

How can it be wrong?

My server is can use port default 0(20) and can use Filezilla to upload on that.

I have researched on this forum but still cannot fix this.

 

Thank you for your attention.

Posted

Well, one of them is clearly failing, but since you have no error checking you'll never know.  You should add some and then you should be able to figure it out.  Theres nothing "wrong" with the code you posted.

 

FTP port default is 21 btw. not that it matters / has relevance.

  • 2 weeks later...

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
×
×
  • Create New...