SYS_LAST_RESTART_TEXT

Use the SYS_LAST_RESTART_TEXT script function to retrieve the text of the previous restart point defined in the script.

Notes:

Syntax

SYS_LAST_RESTART_TEXT ()

Return Codes

Examples

The first restart point in the following example has a text (Program directory). The script writes the text in the activation report.

:RESTART BIN, "Program directory"  
COPY C:\AEG\BIN\*.* C:\BACKUP\AEG\BIN\*.* /Y

:
INC DOS.ERRORLEVEL

:
SET &RET# = SYS_LAST_RESTART_TEXT()
:
PRINT "Last restart point: &RET#"

:
RESTART DB, "Database directory"  
XCOPY C:\AEG\DB\*.* C:\BACKUP\AEG\DB\*.* /E /Y

:
INC DOS.ERRORLEVEL

The restart point in the following example does not have a text. The script writes the following phrase in the activation report: Restart Point BIN.

:RESTART BIN
:
SET &RET# = SYS_LAST_RESTART_TEXT()
:
PRINT &RET#

See also:

seealso

Script Elements for Restarting Tasks