I need to detect when there is a error in fbc and abort the rest of the program.
Here is what I have so far.
Code: Select all
#lang "FBLITE"
Cmd$ = COMMAND$
SHELL "FBC " + Cmd$
PeriodPos% = Instr(Cmd$,".")
FileName$ = LEFT$(Cmd$,PeriodPos%-1)
ExeName$ = FileName$ + ".exe"
SHELL "exe2coff " + ExeName$
SHELL "copy C:\bin\pmodstub.exe .\"
SHELL "copy /b pmodstub.exe+" + FileName$ + " " + ExeName$
How do I detect when FBC has error?