Using the %lastfailedcmd Variable

<< Click to Display Table of Contents >>

Navigation:  Robo-FTP User's Guide > Script Programming > Internal Script Variables >

Using the %lastfailedcmd Variable

 

The %lastfailedcmd variable is initialized to the most recently completed script command that generated an error. When running from a script file, the variable is prepended with the corresponding line number. If a subsequent command executes without returning an error, the contents of %lastfailedcmd are not affected. Refer to the article on Using the %lasterror Variable for an example script excerpt that includes sending the last failed command in an error notification email.

 

See also: %lasterror, Internal Script Variables, Script File Result Codes, Interactive Debugging, Simple Error Handling Example