mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
368 B
23 lines
368 B
@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
|