Howard,
With Terminal Server, you may not want to run Kix Scripts. Over DUN, you may not either. So.. Going "fine" with the detection is acceptable before running Kix.
You really could do something like:
code:
@echo off
VER | find "XP" > nul
IF not errorlevel 1 GOTO :s_win_XP
VER | find "NT" > nul
IF not errorlevel 1 GOTO :s_win_NT
VER | find "2000" > nul
IF not errorlevel 1 GOTO :s_win_2000
VER | find "Millennium" > nul
IF not errorlevel 1 GOTO :s_win_me
VER | find "98" > nul
IF not errorlevel 1 GOTO :s_win_98
VER | find "95" > nul
IF not errorlevel 1 GOTO :s_win_95
GOTO :s_unknown_os
:s_win_XP
Echo you are running XP
SET OS = WINXP
goto t_server_chk
:s_win_NT
Echo you are running NT
SET OS = WINNT
goto t_server_chk
:s_win_2000
Echo you are running 2000
SET OS = 2000
goto t_server_chk
:s_win_me
Echo you are running ME
goto end
:s_win_98
Echo you are running 98
goto end
:s_win_95
Echo you are running 95
goto end
:s_unknown_os
Echo you are running a unknown OS
goto end
:t_server_chk
net start | find "Terminal" > nul
IF not errorlevel 1 SET TSer = YES
IF TSer = Yes Echo %OS% and Terminal Server
IF NOT TSer = Yes Echo %OS%
goto end
:end
I also found this bit of interesting info..
http://www.ultratech-llc.com/KB/?File=OSType.TXT
L8r,
- Kent
[ 07 April 2002, 01:18: Message edited by: kdyer ]