#207763 - 2013-09-17 11:06 PM
Noob to Kixtart
|
ChuckBB88
Fresh Scripter
Registered: 2012-10-09
Posts: 6
Loc: NJ, USA
|
Hi gang I am pretty new to using kixtart. I have a .kix file I am trying to clean and or get working. My first question is what does $M = mean? For example I have
? $MyIP select case $IP2 = 10 ;? "Shipping" case $IP2 = 20 ;? "Education" if $m = "AIO-WTH-GRADE-02" or $l = "PRO-FEVANS" use Y: "\\nas6\Notebook 0910$"
I would assume that $m = the name of the PC correct? What my goal is to set network drive mapping shares based on computer name or better yet partial computer names. Any examples or info on how to do this would be great appreciated. Thanks in advance!
|
|
Top
|
|
|
|
#207781 - 2013-09-18 09:12 PM
Re: Noob to Kixtart
[Re: Lonkero]
|
ChuckBB88
Fresh Scripter
Registered: 2012-10-09
Posts: 6
Loc: NJ, USA
|
Thanks folks for the replies. I did briefly look at the manual, I'll have to go back to it and see if I can find help and also check why my settings aren't working. I assume what I am asking can be done. Thanks again!
|
|
Top
|
|
|
|
#207783 - 2013-09-18 09:36 PM
Re: Noob to Kixtart
[Re: Glenn Barnas]
|
ChuckBB88
Fresh Scripter
Registered: 2012-10-09
Posts: 6
Loc: NJ, USA
|
Thanks much Glenn! I am in South Jersey in Washington Twp!
Edited by ChuckBB88 (2013-09-18 09:37 PM)
|
|
Top
|
|
|
|
#207784 - 2013-09-18 09:48 PM
Re: Noob to Kixtart
[Re: ChuckBB88]
|
ShaneEP
MM club member
   
Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
|
I would recommend downloading the most recent version of the html based help file from the following thread. It is must easier to use when needing to quickly look up a function or command.
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=202858#Post202858
As for your specific question, yes it's possible. Honestly just about anything is possible in kix.
The script you posted however is not complete. The $m is a variable that was created in the script, but it is never populated in the snippet that you posted. I’d guess that somewhere above the portion you posted there is a line with something like $m = @WkSta which would assign the value of the workstation macro the variable $m.
The $l variable, as well as the $IP2 and $MyIP variables are also never populated, so there is no telling where their values are coming from.
If you want to go about using a portion of a string, take a look at the SubStr(), or InStr() functions.
Just a quick example…
$m = @WkSta
If InStr($m, "AIO-WTH-")
Use Y: "\\nas6\Notebook 0910$"
Endif
|
|
Top
|
|
|
|
#207787 - 2013-09-19 03:31 PM
Re: Noob to Kixtart
[Re: ShaneEP]
|
ChuckBB88
Fresh Scripter
Registered: 2012-10-09
Posts: 6
Loc: NJ, USA
|
Shane, thanks you!!! Excellent information, I feel like I am getting somewhere now and learning. Yes above what I posted previously is the below script information. Not sure what the 1, 8 stand for in the $m line. Thanks for help!
$compname = @wksta $userid = @userid
$o = SUBSTR($compname, 1, 3) $n = SUBSTR($compname, 1, 7) $m = SUBSTR($compname, 1, 8) $l = SUBSTR($compname, 1, 9) $k = SUBSTR($compname, 1, 10) $i = SUBSTR($compname, 1, 11) $h = SUBSTR($compname, 1, 12) $g = SUBSTR($compname, 1, 13) $u = SUBSTR($userid, 1, 6) $v = SUBSTR($userid, 1, 8)
|
|
Top
|
|
|
|
#207789 - 2013-09-19 04:07 PM
Re: Noob to Kixtart
[Re: Glenn Barnas]
|
ChuckBB88
Fresh Scripter
Registered: 2012-10-09
Posts: 6
Loc: NJ, USA
|
Thanks Glenn! I have a sister in law who lives in Ridgewood which I believe is Bergen county.
|
|
Top
|
|
|
|
#207791 - 2013-09-19 04:40 PM
Re: Noob to Kixtart
[Re: Glenn Barnas]
|
ChuckBB88
Fresh Scripter
Registered: 2012-10-09
Posts: 6
Loc: NJ, USA
|
Sounds good to me Glenn, I am always up for a beer and usually bored at those family functions, ha!! Take care!
|
|
Top
|
|
|
|
#207793 - 2013-09-20 11:55 AM
Re: Noob to Kixtart
[Re: ChuckBB88]
|
BradV
Seasoned Scripter
  
Registered: 2006-08-16
Posts: 687
Loc: Maryland, USA
|
Bored with family in Jersey? Don't you guys watch TV?
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1046 anonymous users online.
|
|
|