I had this running in a script to determine the OS. Now that is switched from kixtart 3.63 4.02 it doesn't work anymore. I know there are a lot of ways to do this but some are way too long. I just want to simply know the OS type.

Here is what I have:

Select
Case ((@INWIN = 1) And (@DOS = 5.0))
$OS = "Win2K"
Case ((@INWIN = 1) And (@DOS = 4.0))
$OS = "WinNT4"
Case ((@INWIN = 2) And (@DOS >= 4.10))
$OS = "Win98"
Case ((@INWIN = 2) And (@DOS = 4.0))
$OS = "Win95"
EndSelect

"Running""$os"

On 3.62 the output wass fine. On 4.02 I get $os as the output.

Thanks