The FTP Advanced action is used to create custom FTP actions, that aren't included in the standard FTP actions. It could be used, for example, to move folders or files on an FTP server or to retrieve file listings.
You set properties by selecting a command and then entering any custom parameters required. When retrieving or sending data, you can populate a variable with the data. The Create Variable action must be used first to create the variable.
From the Task Builder Available Actions pane, open the Internet\FTP folder and double-click the FTP Advanced action or drag it into the Steps pane.
In the FTP command box, select the action to perform. The options are:
Connect: Connect to an FTP server. Example parameter: ftp.domain.com or 188.8.131.52.
Username: Provide a user name for logging in (USER). Example parameter: anonymous.
Password: Provide a password for logging in (PASS). Example parameter: email@example.com
Help: Retrieve FTP help information (HELP).
System information: Retrieve information about the remote FTP server (SYST).
Site command: Issue server specific commands that are not part of the FTP RFC (SITE). Examples include CHMOD or DIRSTYLE. Example parameter: CHMOD 744 FileName.exe
Passive mode: Switch to passive mode to negotiate file transfers through firewalls (PASV).
Ascii mode: Switch to ASCII transfer mode (TYPE A). Used when transferring text files with FTP servers that do not use ASCII as the base character set. One example is EBCDIC.
Binary mode: Switch to binary transfer mode (TYPE I). Used when transferring binary files.
Download file (get): Download one file (PORT followed by RETR). Similar to DOS FTP 'get'. Example parameter: \"/Remote FileName.exe\" [optional]\"C:\\Local FileName.exe\"
Download multiple files (mget): Download multiple files using a mask (multiple PORT and RETR). Similar to DOS FTP 'mget'. Example parameter: /*.exe
Upload file (put): Upload one file (PORT followed by STOR). Similar to DOS FTP 'put'. Example parameter: \"C:\\Local FileName.exe\" [optional]\"/Remote FileName.exe\"
Upload multiple files (mput): Upload multiple files using a mask (multiple PORT and STOR). Similar to DOS FTP 'mput'. Example parameter: \"C:\\*.exe\"
Delete file: Delete one file (DELE). Example parameter: \"/FileName.exe\"
Delete multiple files (mdelete): Delete files using a mask (multiple DELE). Similar to DOS FTP 'mdelete'. Example parameter: \"/*.exe\"
Rename file: Rename a file (RNFR followed by RNTO). Example parameters: FileName.exe \"New FileName.exe\"
Create folder: Create a folder (MKD). Example parameter: \"New Folder\"
Remove folder: Remove a folder (RMD). Example parameter: \"Old Folder\"
Change folder: Change the current folder (CWD). Example parameter: \"New Folder\"
Up one folder: Change to the parent folder (CDUP)
Retrieve current folder: Retrieve the current folder (PWD)
Get short file list: Retrieve a basic file listing (PORT followed by NLST). Example parameter: *.exe
Get long file list: Retrieve a verbose file listing (PORT followed by LIST). Example parameter: *.exe
Disconnect: Disconnect from an FTP server.
User defined: Issue a custom command to an FTP server.
In the Parameters box, enter the parameters according to the selected command.
In the Session name box, enter the name of the FTP session. The name is set in the FTP Log On action.
If you are sending or retrieving data and want to use it to populate a variable, click the Data tab. In the applicable box, select the variable to populate.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
Adding Task Steps
FTP Advanced Action