Nate...Here is some PURE kix code (not to be mistaken for batch scripting) that does the same thing you were trying to accomplish. You should read the manual that comes with kix to get a handle on how it works.
Code:
Select
Case InStr (@ProductType,"Windows XP")
? "Found Windows XP"
; Or what ever command you want to run.
Case InStr (@ProductType,"Windows 2000")
? "Found Windows 2000"
use s: "\\fsga01\administration\it\docs"
Case InStr (@ProductType,"Windows NT")
? "Found Windows NT 4"
If InGroup ("test2")
Use * /delete /Persistent
shell "SUBST N: /D"
shell "SUBST N: \\fsga01\administration\it"
use m: "\\fsga01\administration"
Endif
Case InStr (@ProductType,"Windows 9")
? "Found Windows 9x"
; Or what ever command you want to run.
Case 1
$null = MessageBox ("Unable To Detect OS...Please Contact A System Administrator","Error",0)
EndSelect