LASTPROMPT system variable
Function Description:
The LASTPROMPT system variable is used to store the last string to echo to the command prompt.
(Read-Only)
Type : Strings
Saved in : Not saved
Initial value : ""
This string is the same as the last line seen at the Command prompt and includes any user input