Keil Logo

GENERAL: DOS ERRORLEVEL


Information in this article applies to:

  • C166 Version 3 and Later
  • C251 Version 2 and Later
  • C51 Version 5 and Later
  • Keil MDK Version 4 and Later

QUESTION

Do the compiler and assembler set the DOS error level that I can check in my BATCH files?

ANSWER

Yes, all our tools set the DOS errorlevel to one of the following values:

0 -- Successful with no errors or warnings
1 -- Warnings
2 -- Errors (and possibly Warnings)
3 -- Fatal Errors

MORE INFORMATION

Refer to the following compiler user's guides for more information about ERRORLEVEL:


Last Reviewed: Thursday, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.