FTP Site Command
This command assumes familiarity with operating FTP servers and clients. This option sends a FTP command, one that we otherwise wouldn't support, to the FTP server.
Script Editor > Expand Internet Category > FTP Site Command
Command to send to Host
This is essentially a free form field to send a command to the FTP server. There are a large number of FTP commands available. It is necessary to know the correct format of the command to send to the FTP server. This field is case sensitive. It is also necessary to make sure that the FTP server supports the command to be sent.
FTP Library Help Definition of FTP Site
"Site is a procedure used to send a site-specific FTP command directly to the FTP server. Site is used by an FTP server to provide services specific to the host system that are essential to file transfer, but not sufficiently universal to be included as commands in the FTP protocol."
In short, the FTP Site command will not send "normal" commands like "S", "get" or "put". The commands that are sent have a syntax of "SITE something".
Response from Host
The message generated by the FTP server, whether a success or failure, is saved to the assigned variable. There are several ways to monitor the variable to determine the status of the operation.
1.Place the variable in a Text Box Display command to display the results at the end of the macro.
2.Use the Variable Modify String command to save the variable results to a text file for later review.
3.Send the results via email to an email account.
üNote: Before using this function, the macro script first requires the FTP Site Connect command to connect to the site. When all FTP actions have been completed, use the FTP Site Disconnect command to disconnect from the site.