On the outside chance that this does not confuse the issue more.

I find that for starting up the KiXtart script I only need to determine if the client computer is Win9x (Win95, Win98, WinME) or NT (NT4, W2K, XP). The reason one needs to make this determination is so that the proper KiXtart file(s) can be copied to the client.

The following code has served me well and does not need to be updated when a new operating system name comes out.

code:
:: Determine OS
IF '%OS%'=='Windows_NT' GOTO WinNT

SET windir=
SET windir=
IF '%windir%'=='' SET OS=DOS
IF '%OS%'=='' IF '%windir%'=='' SET OS=Windows_3.x
IF '%OS%'=='' SET OS=Win9x
IF '%OS%'=='Win9x' GOTO Cont

echo DOS and Windows 3.x are not supported!
pause
goto End

The code works based on protected environment variable of each type of operating system.

[ 26. November 2002, 03:38: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/