Source code of Windows XP (NT5)
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

  1. @echo off
  2. setlocal
  3. REM
  4. REM this script will get the build number from ntverp.h
  5. REM
  6. set ntverp=%_NTBINDIR%\public\sdk\inc\ntverp.h
  7. if NOT EXIST %ntverp% (echo Can't find ntverp.h.&goto :ErrEnd)
  8. for /f "tokens=6" %%i in ('findstr /c:"#define VER_PRODUCTBUILD " %ntverp%') do echo %%i
  9. goto :End
  10. :ErrEnd
  11. echo Quitting with errors
  12. goto :End
  13. :End
  14. endlocal
  15. goto :EOF