While I'm at it, may as well give Kent's one liner a go. How about this?

code:

VER|FIND /I "2000" && IF %ERRORLEVEL% EQU 0 GOTO WIN2K || VER|FIND /I "XP" && IF %ERRORLEVEL% EQU 0 GOTO XP

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.