Pech,

Here are two ways to do this...


JSI Tip 4995. Logon scripts that run in Windows XP may not work if %0 or %0\..\ is used in the script?


Otherwise:
code:
VER | find "NT" > nul 
IF not errorlevel 1 GOTO Win_NT

VER | find "2000" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "XP" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "Me" > nul
IF not errorlevel 1 GOTO Win_9X

VER | find "98" > nul
IF not errorlevel 1 GOTO Win_9X

VER | find "95" > nul
IF not errorlevel 1 GOTO Win_9X

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's