#137621 - 2005-04-08 10:32 PM
2010 Beta 2a - Couple of issues
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
(1) Trying to understand or get the include working:
In our script today, we have: Code:
IF RIGHT(@SCRIPTNAME,2)='kx' CALL @ldrive+'kldtest\function.kx' ELSE CALL @ldrive+'kldtest\function.kix' ENDIF
CALL works fine.
Why can't I do the following? Code:
IF RIGHT(@SCRIPTNAME,2)='kx' INCLUDE @ldrive+'kldtest\function.kx' ELSE INCLUDE @ldrive+'kldtest\function.kix' ENDIF
(2) Not sure of the search path of W/KIX32, but when I run: C:\Scripts>kix32 %logonserver%\netlogon\kldtest\kixtart
The script works fine.
But, when I run: C:\Scripts>kix32 %logonserver%\netlogon\kldtest\kixtart.KIX
The script comes back with the following message:
Quote:
ERROR : expected string! Script: \\CHIRON\netlogon\kldtest\kixtart.KIX
So, I am assuming that W/KIX32 automatically picks up on the .KX or compiled script before the .KIX or text version?
How this came about is that I am playing with the script, but have one that is tokenized there. So, I get bad results unless I specify the .kix extension. Call me lazy.
Thanks,
Kent
|
Top
|
|
|
|
#137623 - 2005-04-08 10:49 PM
Re: 2010 Beta 2a - Couple of issues
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Right.. But what I want to do is to INCLUDE the function script that used by several different companies in our main login script and the problem is that I have to CALL function.kix file again from one of the branch-outs from KiXtart.kix.
So, what you are saying is that you have to have a hard-mapped drive to run this correctly?
Kent
Edited by kdyer (2005-04-08 10:51 PM)
|
Top
|
|
|
|
#137624 - 2005-04-08 10:57 PM
Re: 2010 Beta 2a - Couple of issues
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Did some more playing with this..
Commented out: Code:
$rc=SETOPTION('Explicit','On') $rc=SETOPTION('NoVarsInStrings','On')
And did some changes to my code - Yes I know Vars in Strings are evil.
Code:
; -- LOAD FUNCTIONS IF RIGHT(@SCRIPTNAME,2)='kx' INCLUDE '@ldrive\kldtest\function.kx' ELSE INCLUDE '@ldrive\kldtest\function.kix' ENDIF
And.. Get an intersting error:
Quote:
ERROR : failed to find/open script [@ldrive\kldtest\function.kx]! Script: kixtart.kix
The function.kx is there and is updated with the new version of KiX.
I map my DC\Netlogon as a drive, it works fine: Code:
IF RIGHT(@SCRIPTNAME,2)='kx' INCLUDE 'z:\kldtest\function.kx' ELSE INCLUDE 'z:\kldtest\function.kix' ENDIF
Thanks,
Kent
Edited by kdyer (2005-04-08 11:00 PM)
|
Top
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 557 anonymous users online.
|
|
|