windows-nt/Source/XPSP1/NT/tools/postbuildscripts/getbldno.cmd

24 lines
368 B
Batchfile
Raw Normal View History

2020-09-26 03:20:57 -05:00
@echo off
setlocal
REM
REM this script will get the build number from ntverp.h
REM
set ntverp=%_NTBINDIR%\public\sdk\inc\ntverp.h
if NOT EXIST %ntverp% (echo Can't find ntverp.h.&goto :ErrEnd)
for /f "tokens=6" %%i in ('findstr /c:"#define VER_PRODUCTBUILD " %ntverp%') do echo %%i
goto :End
:ErrEnd
echo Quitting with errors
goto :End
:End
endlocal
goto :EOF