This method connects to the FTP server

[Visual Basic]   [ Boolean = ]imagekitcontrolname.File.FTPConnect(ServerName As String, ProxyName As String, PortNo As Integer, PassiveMode As Boolean, UserName As String, Password As String)
[Visual C++]     [ BOOL = ]imagekitcontrolname.GetFile().FTPConnect(LPCTSTR ServerName, LPCTSTR ProxyName, short PortNo, BOOL PassiveMode, LPCTSTR UserName, LPCTSTR Password)
[VB.NET]   [ Boolean = ]imagekitcontrolname.File.FTPConnect(ServerName As String, ProxyName As String, PortNo As Short, PassiveMode As Boolean, UserName As String, Password As String)
[C#.NET]   [ bool = ]imagekitcontrolname.File.FTPConnect(string ServerName, string ProxyName, short PortNo, bool PassiveMode, string UserName, string Password)

Parameters

Name Explanation
ServerName The name of the FTP server or IPAddress
ProxyName The Proxy Server IP Address
PortNo Port Number (default is 21)
PassiveMode Enables passive mode connectivity: False(0) = Active Mode Connection; True(nonzero) = Passive Mode Connection
UserName The username needed to access the FTP server
Password The password needed to access the FTP server

Return Value

Returns True (nonzero) if successful. Returns False (0) if unsuccessful.

Explanation

The FTPConnect method connects to the FTP server. This method can only be executed from the client computer. It does not operate on the server. After this method has connected to the FTP server, it is possible to use the FTPDeleteFileEx, FTPGetFileEx, FTPPutFileEx, and FTPRenameFileEx methods.

When not using a proxy server set the ProxyName to an empty string, to vbNullString(Visual Basic), to NULL(Visual C++), to Nothing(VB.NET), or null(C#.NET).

 

The ImageKit10 ActiveX is a product created by Newtone Corporation