System Variable LASTPROMPT
Returns the last prompt string displayed in the command window.
Properties
Type
String
Status
Read-Only
Saved
Not saved