Click here to return to the KiXtart HelpDesk main page...

KiXtart Script Depot

Getting the Error Code

;
; Simple Debugging: Getting the Error Code
; Brian Petersen, 17.12.1998
;

cls
shell "dirt.bat"
$Fejl=@ERROR

sleep 3
cls
If $Fejl=0
	"The Program terminated correctly. $Fejl Errors"
else
	"The Program returned ErrorCode $Fejl"
endif