Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

build.exe return code (errorlevel)

Alex_GrigAlex_Grig Member Posts: 3,238
I may be too late to this bandwagon, but does build.exe return any meaningful non-zero error code in case of build failure? I don't seem to get anything else than 0.

Comments

  • Daniel_TerhellDaniel_Terhell Member Posts: 1,349
    From my experience the ERRORLEVEL environment var should be set to 0 on
    success and on 1 on failure. Type
    %ERRORLEVEL% after a build to verify this, possibly you have a problem with
    your conditional processing in your script or otherwise use:

    if %ERRORLEVEL% LEQ 1 ECHO ERROR

    //Daniel

    <xxxxx@broadcom.com> wrote in message news:xxxxx@ntdev...
    >I may be too late to this bandwagon, but does build.exe return any
    >meaningful non-zero error code in case of build failure? I don't seem to
    >get anything else than 0.
    >
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Developing Minifilters 29 July 2019 OSR Seminar Space
Writing WDF Drivers 23 Sept 2019 OSR Seminar Space
Kernel Debugging 21 Oct 2019 OSR Seminar Space
Internals & Software Drivers 18 Nov 2019 Dulles, VA