ShawnAdministrator
(KiX Supporter)
2005-04-30 06:19 PM
@SCRIPTDIR in Kixtart 4.50 Beta 2a

Can anyone verify if @SCRIPTDIR is broken in the latest beta (compared to the behavior in 4.23 for example) ?

-Shawn


Les
(KiX Master)
2005-04-30 06:33 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

Can you elaborate? I get identical results in my basic tests.

Code:
break on
'KiX version: ['+@KiX+']' ?

'ScriptDir: ['+@SCRIPTDIR+']' ?


KiX version: [4.50 Beta 2a Release]
ScriptDir: [C:\KiXscripts]

C:\KiXScripts>

KiX version: [4.23]
ScriptDir: [C:\KiXscripts]

C:\KiXScripts>


ShawnAdministrator
(KiX Supporter)
2005-04-30 06:34 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

Move and run your script from the root of C: and try again ...

ShawnAdministrator
(KiX Supporter)
2005-04-30 06:41 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

Using the following script:

Code:

break on

? "SCRIPTDIR=" + @SCRIPTDIR

exit 0



Getting different results ...

4.23

E:\>kix423 bug

SCRIPTDIR=E:

4.50

E:\>kix32 bug

SCRIPTDIR=



Les
(KiX Master)
2005-04-30 06:48 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

So.. prob only if run from the root?

Les
(KiX Master)
2005-04-30 06:50 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

and only if the path is implied as curdir?

ShawnAdministrator
(KiX Supporter)
2005-04-30 07:48 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

I think only if curdir = scriptdir, regardless of whether its root or not.

Les
(KiX Master)
2005-04-30 08:18 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

right you are


C:\KiXscripts>C:\KiX4.50b2\KIX32.EXE test.kix
KiX version: [4.50 Beta 2 Release]
ScriptDir: []

C:\KiXscripts>C:\KiX4.23\KIX32.EXE test.kix
KiX version: [4.23]
ScriptDir: [C:\KiXscripts]

C:\KiXscripts>

I would never had noticed cuz I do all my testing by drag/dropping the script onto a shortcut that launches KiX from CMD. That way the path is full and never implied as curdir.


NTDOCAdministrator
(KiX Master)
2005-04-30 09:22 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

Ditto - same results here.

C:\>C:\KiX45b2a\kix32 C:\KiX45b2a\test.kix
KiX version: [4.50 Beta 2a Release]
ScriptDir: [C:\KiX45b2a]

C:\KiX45b2a>kix32.exe test.kix
KiX version: [4.50 Beta 2a Release]
ScriptDir: []

C:\KiX45b2a>kix32.exe .\test.kix
KiX version: [4.50 Beta 2a Release]
ScriptDir: [.]


ShawnAdministrator
(KiX Supporter)
2005-04-30 09:43 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

Doc,

Those tests almost make it appear like Kixtart is now fetching @SCRIPTDIR from the commandline now, instead of some other way.


Ruud van Velsen
(Hey THIS is FUN)
2005-05-06 12:59 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

Good catch: this is fixed in RC1 (due to be released soon).

Ruud


iffy
(Starting to like KiXtart)
2005-06-16 05:04 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

still some problems with @scriptdir (and @scriptname), see here

LonkeroAdministrator
(KiX Master Guru)
2005-06-19 10:19 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

iffy had some issues issues and one friend of mine but nobody else can see these, afaik.

NTDOCAdministrator
(KiX Master)
2005-06-19 11:52 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

Yeah, Iffy doesn't have Build 195 which fixed the problem.

Build 196 may be the Release Version expected any time now.
 


LonkeroAdministrator
(KiX Master Guru)
2005-06-21 04:05 AM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

well, rc-1 was said to fix this and 195 did not promise this, thus think it does not cut it.
but.
think we will see if not sooner, at least when gold comes up and iffy gets his hands on it...


NTDOCAdministrator
(KiX Master)
2005-06-21 07:06 AM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

Well I think the naming of the versions may be the issue.

That is why I've been trying to use the build number when I speak of it.


Here was an e-mail from Ruud with KiXtart 4.50 Build 195
 

Quote:

Hi guys,

attached to this email is the final build of 4.50. Before I release this 'into the wild', I want to ask you to do a final test with your existing scripts to make sure everything still works as expected.

I've only fixed a couple minor issues since RC1, so there should be no surprises, but I just want to be sure...

Changes in this build (since RC1): fixed @scriptdir and @scriptname, fixed commandline processing and enhanced VarTypeName().

As soon as I get an 'ok' from you, I'll send out an email announcing the release.

NOTE: before that moment, please do not share this build on your websites.

Many thanks in advance for your help!

Kind regards,

Ruud




LonkeroAdministrator
(KiX Master Guru)
2005-06-21 07:38 AM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

so there it was in the mail...
should read all the "docs" before saying anything.


Bryce
(KiX Supporter)
2005-06-21 04:49 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

I must have missed that last email. never got it. I think my mail server/dynamic DNS was fubared at the time (should be fixed now)

LonkeroAdministrator
(KiX Master Guru)
2005-06-21 09:42 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

hmm...
that's not last email.
I can't get logged onto my hotmail account but afaik, there is already a new one.


Chris S.
(MM club member)
2005-06-21 10:09 PM
Re: @SCRIPTDIR in Kixtart 4.50 Beta 2a

Ja. I got one this morning.