Establishes a connection to an FTP server.
The FTP server to connect to must be specified by setting the ServerAddress property. Please see the "applicable properties" section below to find out which other properties are referred to by this method.
This method can only be used when the CurrentState property's value is fstNotConnected.
None
Methods that send the PWD command do not report errors in the case where the PWD command fails. For example, if the Connect method successfully connects and logs on but the PWD command fails, the Connect method will still succeed and remain connected.
Declaration | |
---|---|
HRESULT Connect() |
AccountName, CurrentFolder, CurrentState, Password, ServerAddress, ServerPort, UserName, AutoRefreshCurrentFolder
LoggingCommandLine, ProcessCompleted