Hi, you can just do this:

BATCH

code:

KIX32 KIXSCRIPT

IF %ERRORLEVEL%==1 REBOOT


KIXSCRIPT

code:

? "hello, this is kix"
$REBOOT='1'

if $REBOOT='1'
EXIT 1
else
EXIT 0
endif


Any number after the EXIT will be returned as %ERRORLEVEL%

[ 27 November 2001: Message edited by: DrillSergeant ]

_________________________
The Code is out there