Page 1 of 1 1
Topic Options
#40916 - 2003-06-02 03:29 PM got a nice Q..... ( i think )
Tulano Offline
Fresh Scripter

Registered: 2003-01-19
Posts: 6
Loc: Holland
Heya,

I hope/think i got a nice Question.

I have to use a SET commmand

i really want to use two nrs of my pcname

so if my pcname is pcnr15 i want to set a environmentsetting.

set myexample=0015

anyone creative to help me work this one out ??

thx already !

Tulano [Confused]

Top
#40917 - 2003-06-02 04:07 PM Re: got a nice Q..... ( i think )
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
It depends on the format of all your PC names, but this will work:
code:
$sPC="pcnr15"
SetL "myexample="+Right("0000"+SubStr($sPC,5),4)



[ 02. June 2003, 16:07: Message edited by: Richard H. ]

Top
#40918 - 2003-06-03 09:14 AM Re: got a nice Q..... ( i think )
Tulano Offline
Fresh Scripter

Registered: 2003-01-19
Posts: 6
Loc: Holland
Thx Richard H. for the reply...
It was almost what i needed ... but with my little knowledge of kix i made this :

code:
$sPC=@WKsta
setM "myexample="+right("0000"+substr($sPC,5),4)

and of course changed the myexample name and now it does what i wanted [Smile]

so thx for helpin out !!

Tulano [Big Grin]

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 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.053 seconds in which 0.025 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