Click here to return to the KiXtart HelpDesk main page...

KiXtart Script Depot

OS Chooser

;
; ScriptNavn:  OS_Chooser.kix
; Author:      Brian Petersen
; Date:          24.04.1998
; Description: Checks the Windows-version and executes code depending on OS.
;                   Example of : Subroutines, Variable use.

IF @INWIN=2
    ? WINVERSION="WIN95"
    GOSUB WIN95
ELSE
    ? WINVERSION="WINNT"
    GOSUB WINNT
ENDIF

GOTO END

:WIN95
; WINDOWS 95 section...
RETURN

:WINNT
; WINDOWS NT section...
RETURN

:END
; Common section...
EXIT