FTPit Pro

Transfer files to and from an FTP server

<- Back to FTPit Pro function list

FTPit_SetAccountOption

Description

This function sets specific options in the Account you specify.

Return Type
Text
Format
FTPit_SetAccountOption ( AccountName ; OptionName ; OptionValue )
Required Parameters
  • AccountName

    The Name of the Account to Modify.

  • OptionName

    The Name of the Option to Modify. The following is a list of the valid option names you can specify:

    • Host - The domain name or IP address of the FTP server for this account.
    • Username - The Username to use when connecting to the FTP server.
    • Password - The Password to use when connecting to the FTP server.
    • TLSType - The type of SSL/TLS connection to use when connecting to the FTP Server. Possible values are None, AfterConnect (also known as Explicit), and BeforeConnect (also known as Implicit).
    • Port - An alternate Port to use to connect to the FTP server for this account.
    • Timeout - A Timeout setting in seconds to wait for the FTP server to respond to commands.
    • PromptForPassword - Specifies whether or not FTPit Pro should Prompt the user for their Password instead of storing it with the rest of the Account information.
    • DataPortRangeStart - Starting TCP/IP Port number for the Data Port Connection. This is an advanced setting for when you must connect to the internet through a firewall. You will most likely never need to use this.
    • DataPortRangeEnd - Ending TCP/IP Port number for the Data Port Connection. This is an advanced setting for when you must connect to the internet through a firewall. You will most likely never need to use this.
    • Passive - Specifies if the connection type is Passive or not. Value is a boolean. Specify "1" for True or "0" for false.
    • DefaultCompletedScript - The name of the script that is used as the default for when FTPit Pro has completed a transfer.
    • DefaultMode - Specifies whether transfers are done in "ASCII" or "Binary" mode by default.
  • OptionValue

    The New Value for the Option.

Related Items
FTPit_AddAccount, FTPit_ConfigureAccount, FTPit_GetAccountNames, FTPit_GetAccountOption, FTPit_RemoveAccount
Examples

Example 1

Code:

FTPit_SetAccountOption("work ftp";"Host";"ftp.mydomain.com")

Result:

Sets the "Host" Option of the "work ftp" Account to "ftp.mydomain.com".

Example 2

Code:

FTPit_SetAccountOption("work ftp";"Passive";"Off")

Result:

Turns off the Passive Option for the "work ftp" Account.