Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for winvercl.bat

(view source code of winvercl.bat as plain text)

  1. @ECHO OFF
  2. SETLOCAL
  3. VER
  4. ECHO.
  5. FOR /F "tokens=2*" %%A IN ('REG.EXE Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName')    DO SET ProductName=%%B
  6. FOR /F "tokens=2*" %%A IN ('REG.EXE Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v DisplayVersion') DO SET DisplayVersion=%%B
  7. ECHO %ProductName% %DisplayVersion%
  8. ENDLOCAL
  9.  

page last uploaded: 2021-01-27