FTP client scripting interface > FTP scripts for Activator application exchanges > FTP commands

FTP commands

This section lists the FTP commands sent to the FTP server when the statement is executed (for a local host, no commands are sent). Some statements do not generate FTP commands. For such statements, the section is not present.

A parameter can have the following elements:

APPEND

Append local file to file on FTP server.

CD

Change the current directory on the FTP server.

DEBUG

Log a partial FTP session in the message log.

DELETE

Delete a file on the FTP server.

GET

Copy a file from the FTP server without processing by an activity.

IF ELSE

Conditional execution.

LIST

Read the contents of a directory on the FTP server.

Local Command

Execute a command at the local site.

MKDIR

Create a directory on the FTP server.

PUT

Copy a local file to the FTP server.

QUIT

Stop the script.

QUOTE

Send an FTP command.

RECV

Receive a file from the FTP server.

RENAME

Rename a file on the FTP server.

RMDIR

Remove a directory on the FTP server.

SEND

Send a file to the FTP server.

SUNIQUE

Toggle the value of the store-unique setting.

TYPE

Set the representation type for data transfers.

WHILE

Loop control.

TYPE "I";

%Break = "";

# Every time we find files check the directory one more time.

WHILE (%Break = "") {

%Break = "BREAK";

-LIST "." INTO %F {

-RECV %F;

IF (%FTPSTATUS IN "200"-"299") {

 -DELETE %F;

 }

 %Break = "";

 }

}