<- Back to FTPit Pro function list
FTPit_Connect
- Description
This function opens a connection to the FTP server set in the account you specify. After using this function, use FTPit_ChangeLocalDir/FTPitChangeRemoteDir to set the current directories, and then you can use the Download/Upload functions to transfer files. When you are done, use the FTPit_Disconnect function to close the connection.
- Return Type
- Text
- Format
- FTPit_Connect ( AccountName )
- Required Parameters
- AccountName
The Account to Connect to.
- AccountName
- Related Items
- FTPit_AddAccount, FTPit_ConfigureAccount, FTPit_Disconnect, FTPit_IsConnected
- Examples
Example 1
Code:
FTPit_Connect("webserver")Result:
Connects to the "webserver" account.Example 2
Code:
FTPit_Connect( FTP::Account )Result:
Connects to the account specified in the "Account" field of the "FTP" table.