Page 1 of 1 1
Topic Options
#37845 - 2003-03-12 05:46 PM @PRODUCTTYPE syntax help
ktodi Offline
Getting the hang of it

Registered: 2002-03-29
Posts: 60
I am using the following lines in my script:

IF @PRODUCTTYPE = ("Windows 2000 Professional") OR ("Windows XP Professional")
GOTO INST
ELSE
? "This workstation is not Windows 2000 Professional or Windows XP Professional"
EXIT

It always jumps to INST even if using a Win2K server. Can someone tell me the proper syntax to use? Should I use the Select case command?

Thank You

Top
#37846 - 2003-03-12 05:54 PM Re: @PRODUCTTYPE syntax help
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Incorrect syntax
code:
IF @PRODUCTTYPE = "Windows 2000 Professional" OR @PRODUCTTYPE = "Windows XP Professional"
GOTO INST
ELSE
? "This workstation is not Windows 2000 Professional or Windows XP Professional"
EXIT
ENDIF

Also, look at the OSID() UDF and never use GOTO. It's not even necessary in your case.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.08 seconds in which 0.054 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org