GETTYPE would require the use of the utility from the Resource Kit.

Has anybody seen the Resource Kit from XP yet?

Doc - I took your code and modified it.

code:

::@ECHO OFF
IF NOT "%OS%" == "Windows_NT" GOTO WIN9X

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

GOTO END

:XP
ECHO Found Windows XP
REM Or what ever command you want to run.
GOTO END

:WIN2K
ECHO Found Windows 2000
REM Or what ever command you want to run.
GOTO END

:NT4
ECHO Found Windows NT 4
REM Or what ever command you want to run.
GOTO END

:WIN9X
ECHO Found Windows 9x
REM Or what ever command you want to run.
GOTO END

:END
PAUSE


Thanks!

- Kent

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