Using the %ftplastresult and %ftpresultsfile Variables |
Top Previous Next |
The last line of any server response is saved in %ftplastresult. In some cases, the %ftplastresult variable may be used in conjunction with the FTPSETERROR script command in order to decode a specific FTP site reply.
When sending FTP commands using the FTPCMD script command, and a multi-line response is received from the remote site, Robo-FTP creates a temporary file and the server's response is written to this file. The file name is saved in an internal variable named %ftpresultsfile. If you need to retain the information in the temporary file, you should immediately copy it to another file as shown below:
FTPCMD "LIST" COPY %ftpresultsfile "save_this_file"
The %ftpresultsfile variable may also be used in conjunction with any file oriented script command (e.g., READFILE, PRINT).
Related Command(s): FTPSETERROR, FTPCMD See Also: Internal Script Variables, Using the %lasterror variable |