Sign in to follow this  
Followers 0
Arlen

FTP Won't Work

3 posts in this topic

#1 ·  Posted

Can only open ftp and connect FTP but nothing else. Tried upload and download and it does not work.

Return code is;
_FTP_DirGetCurrent ( returns  -1 )

#include <FTPEx.au3>

Local $Sesson = _FTP_Open("MyFTP")


Local $handle = _FTP_Connect($Sesson, "files.000webhost.com", "user", "pass", "", 21)

MsgBox(0,"", $handle)

$got = _FTP_DirGetCurrent($Sesson)
If @error Then
    MsgBox(0,"", @error)
EndIf

MsgBox(0,"", $got)

Tested with FileZilla Client, and no problems but with autoit nothing

Share this post


Link to post
Share on other sites



#2 ·  Posted

Try changing

$got = _FTP_DirGetCurrent($Sesson)

to $got = _FTP_DirGetCurrent($handle)

dk

1 person likes this

Share this post


Link to post
Share on other sites

#3 ·  Posted

2 hours ago, DKiehl said:

Try changing

$got = _FTP_DirGetCurrent($Sesson)

to $got = _FTP_DirGetCurrent($handle)

dk

I feel stupid now. thanks for the help!

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  
Followers 0