Jump to content

_FTP_Connect won't connect, @extended is blank


drapdv
 Share

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)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...