FTPit Pro

Transfer files to and from an FTP server

<- Back to list

Am I required to use the built-in Accounts?

Using the accounts is required, but if you prefer to not use them, you can implement the following to basically ignore them. This method is similar to how the Classic FTPit plug-in worked, so if you used that plug-in and want to use FTPit Pro in the same way, this is the best way to do so.

Your script will first need to create an Account, and you can name it whatever you like. This is done using the FTPit_AddAccount function. The script then needs to set the Account details using the FTPit_SetAccountOption function. The Set Field/Variable calculation in your script would look like the following.

FTPit_AddAccount("The_Server")&"¶"&
FTPit_SetAccountOption("The_Server";"Host"; DB::Host)&"¶"&
FTPit_SetAccountOption("The_Server";"Port"; DB::Port)&"¶"&
FTPit_SetAccountOption("The_Server";"Username"; DB::Username )&"¶"&
FTPit_SetAccountOption("The_Server";"Password"; DB::Password )

You could also add other Account Options not shown above using this method. Look at the FTPit_SetAccountOption function reference found in the Functions section for a list of all the available options you can set.

If you added this calculation to the start of your FTPit Pro scripts, you could then dynamically change Servers as needed based on fields, variables, or other criteria. Your scripts would always make the plug-in connect to the same account, but you would simply be changing the account details as needed.

Note
Calling the AddAccount function multiple times with the same account name will not hurt anything. If the account already exists, the function will simply return something like "Account already exists". This is not a problem.