This scenario renames a file on the FTP server via tFTPRename. Before the renaming, the file on the FTP server is shown below:
Drop tFTPConnection and tFTPRename from the Palette onto the design workspace.
Link tFTPConnection to tFTPRename using the OnSubjobOk trigger.
Double-click tFTPConnection to open its Basic settings view.
In the Host and Port fields, enter the connection details.
In the Username and Password fields, enter the authentication details.
Double-click tFTPRename to open its Basic settings view.
Select the Use an existing connection check box and then select tFTPConnection_1 from the Component List.
In the Remote directory field, enter the directory on the FTP server where the file exists. Clear the Move to the current directory check box.
In the Files table, click the [+] button to add a line.
In the Filemask column, enter the existing file name.
In the New name column, enter the new file name.