We had to detect XP from a bat file just recently and are using something like this (I just converted it to 3.x compatible syntax), if anyone knows of a better way to do in 3.x or DOS, would love to hear ...


SHELL '%COMSPEC% /C VER | FIND "Windows XP" >NUL 2>NUL'

IF @ERROR = 0
?"XP"
ELSE
?"NOT XP"
ENDIF