Jump to content
Sign in to follow this  

_FTP_Connect won't connect, @extended is blank

Recommended Posts


Okay, I have 8 identical computers (all the same model, all created from the same image) that are all running the same compiled script. 7 of them can connect to the ftp server via _FTP_Connect, 1 can't.

So I began working on the 1 that could not connect. I can ping the ftp server from the computer just fine. It is set up the same as all the other computers, so I don't get why it can't connect.

Additionally, it is supposed to return the results of _WinAPI_GetLastError() as the @extended value when it returns @error. It returns "0". So all I get is "ERR: -1, EXT: 0" from the MsgBox. Thoughts?

#include <FTPEx.au3>
$server = 'the ip'
$username = 'username'
$pass = 'password'
$Open = _FTP_Open('MyFTP Control')
$Conn = _FTP_Connect($Open, $server, $username, $pass, 1)
If @error Then MsgBox(0, "ERROR", "ERR: "&@error&", EXT: "&@extended)
$Ftpc = _FTP_Close($Open)

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.