Hello all
I'd like to use a windows batch-file (preBuild.bat) as pre-build script. If the preBuild.bat detects an error, the build process should be stopped. This works perfectly if the pre-build "script" is a regular .exe, returning a non zero value.
However, I am not successful when returning a non zero value using the preBuild.bat batch file.
I tried to use
exit 1
in the .bat file, but uVision seems to ignore the return value of .bat files.
Any ideas?
Thanks & regards, Martin
Thanks Hans-Bernhard for this comment, didnt know that...
Unfortunately, renaming the script to *.cmd instead of *.bat didnt help. I'll try contacting keil support tomorrow.
Regards, martin
.. checking exit codes is sequence critical i.e. (as I do not recall) only one of these work
if == 0 if == 1
or if == 1 if == 0
Erik