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 modified: 2024-04-16; loaded in 0.0070 seconds