|
VER
Displays the Windows version number.
Syntax
VER
Examples
@echo off
SETLOCAL
:: Get the WINDOWS SERVICE PACK Level
:: For NT, 2k and XP
:: Requires the REG.exe utility (NT Reskit or standard in Win XP)
:: Delimiters below are tab plus space
FOR /f "tokens=2* delims= " %%G IN ('Reg.exe QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CSDVersion ^| find /i ^"CSDVersion^"') DO (
set v_sp=%%h & echo CURRENT SERVICE PACK IS: %%H)
PAUSE
Cmd Commands
|