|
Hi,
check this ...
Select Case $ProductType="LanmanNT" $os="Windows NT Domain Controller" Case (($ProductType="ServerNT") AND ($ProductSuite="Terminal Server|") AND ($TSEnabled=1)) $os="Windows 2000 Terminal Server" Case (($ProductType="ServerNT") AND ($ProductSuite="Terminal Server|") AND ($TSEnabled=0)) $os="Windows 2000 Server" Case (($ProductType="ServerNT") AND ($ProductSuite="Terminal Server|") AND ($TSEnabled="")) $os="Windows NT Terminal Server" Case (($ProductType="ServerNT") AND ($ProductSuite="")) $os="Windows NT Server" Case (($ProductType="WinNT") AND ($DOSVer="5.0")) $os="Windows 2000 Workstation" Case (($ProductType="WinNT") AND ($DOSVer="4.0")) $os="Windows NT Workstation" Case (($ProductType="WinNT") AND ($DOSVer="5.1")) $os="Windows XP Professional" Case ((@INWIN=2) AND ($DOSVer="4.10")) $os="Windows 98" Case ((@INWIN=2) AND ($DOSVer="4.0")) $os="Windows 95" EndSelect
$os includes the name of the OS.
for examble ...
If (($ProductType="WinNT") AND ($DOSVer="4.0")) exit else endif
regards O.
|