ver | find "5.2." > NUL
if NOT ERRORLEVEL 1 set MyWindowsVer=Server2k3
ver | find "6.1." > NUL
if NOT ERRORLEVEL 1 set MyWindowsVer=Win7
ver | find "6.0." > NUL
if NOT ERRORLEVEL 1 set MyWindowsVer=Vista
ver | find "5.1." > NUL
if NOT ERRORLEVEL 1 set MyWindowsVer=XP

Only problem is that 6.0 counts for both Vista and for Server2008. How to differentiate the two from within a DOS batch file?
_________________________
Tony Fabris