You did not say if your external program output the number to stdout or as an exit code. If the external program set an exit code, then you can do this:

code:
if @inwin=1
shell "%comspec% /c $CRCprog -v $FileSize $CRC $TargetFile >nul"
else
shell "$CRCprog -v $FileSize $CRC $TargetFile"
endif
$RC = @ERROR

Because KiXtart seems to pipe the exit code of a SHELL'ed program back through to @ERROR. Then check check $RC and do whatever.

[ 12 March 2002, 20:17: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/