Hello Nboothe and welcome to the board.

Please take a look at the sample code below and see if it helps or not. Then post for followup.

code:

; *** This code locates an NT Server to allow you to do any Server tasks ***
IF @INWIN = 1
$SRVR = ReadValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions", "ProductType")
IF $SRVR<>"WinNT" ; System is not a Workstation so assume it is a Server
; Call the server routine or quit
; CALL "SERVER.KIX"

QUIT
ENDIF
ENDIF

IF (@INWIN = 1)
$NT_mode="yes"
ELSE
$NT_mode="no"
ENDIF

IF $NT_mode = "yes"
; do something for NT here
ELSE
; do something for Win9x here
ENDIF