oFTP.Open()

FTPv2.ahk / oFTP

oFTP.Open()


Opens an FTP connection and returns the InternetConnect handle on success, 0 on failure

oFTP.Open(Server, [Username, Password])

Parameters

Server

FTP server

Username

(Optional) Username

Password

(Optional) Password

Return Value

Handle of InternetConnect on success, false otherwise.

Remarks

Port, InternetConnectFlags can be set beforehand [see Properties of FTP class]

Related

FTP(), oFTP.CloseHandle()

Example

oFTP.Open("ftp.autohotkey.net", "myUserName", "myPassword")