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

Sept/Oct 2019 Issue of The NT Insider available


Download PDF here: http://insider.osr.com/2019/ntinsider_2019_01.pdf

It’s a particularly BIG issue, too: 40 pages of technical goodness, ranging from WDF to Minifilters. Check it out.
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
Writing WDF Drivers 21 Oct 2019 OSR Seminar Space & ONLINE
Internals & Software Drivers 18 Nov 2019 Dulles, VA
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 27 Apr 2020 OSR Seminar Space & ONLINE