Page 1 of 1 1
Topic Options
#188558 - 2008-07-03 08:28 PM IF @WKSTA = COMPUTER****
Project626 Offline
Just in Town

Registered: 2008-07-03
Posts: 3
Hi Guys,

Have an easy one for ya (hopefully). is there any way to add a wildcard to the IF @WKSTA command? What I am looking to do is specify multiple computers with the first same characters where * would be the wildcard string:

IF @WKSTA = "UKCTX*"

Any help would be appreciated

Thanks!

Top
#188560 - 2008-07-03 08:39 PM Re: IF @WKSTA = COMPUTER**** [Re: Project626]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
You could use the Left() function.
A small example:

 Code:
If Left(@WKSTA, 5) = "UKCTX"
	;do stuff
Else
	;do other stuff
EndIf
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#188586 - 2008-07-07 04:43 PM Re: IF @WKSTA = COMPUTER**** [Re: Mart]
Project626 Offline
Just in Town

Registered: 2008-07-03
Posts: 3
Perfect, Thank you!!
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 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.05 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

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