@RETCODE

Top  Previous  Next

Syntax:

 

@RETCODE()

 

Description:

 

This function returns the exit code (e.g. DOS errorlevel) of the last program executed using a RUN or SHELL command with a WAIT parameter.

 

OK:

 

Unchanged.

 

Example:

 

RUN PKZIP.EXE

info Return code was @retcode()

 

See also:

 


RUN

SHELL