pepper
(Fresh Scripter)
2009-01-07 08:35 PM
Blank @SCRIPTDIR

When I launch a script with kix32, @SCRIPTDIR returns the script's directory. If I use wkix32, it returns nothing. Is this normal? If so, is there a @SCRIPTDIR equivalent for wkix32? Thanks \:\)

Björn
(Korg Regular)
2009-01-07 10:23 PM
Re: Blank @SCRIPTDIR

Heyya. What version is this for, on what kind of enviroment?

pepper
(Fresh Scripter)
2009-01-07 10:28 PM
Re: Blank @SCRIPTDIR

Hiya \:\) It's 4.60.0.0 on Windows XP. Thanks!

NTDOCAdministrator
(KiX Master)
2009-01-08 02:33 AM
Re: Blank @SCRIPTDIR

4.61 beta is out now

LonkeroAdministrator
(KiX Master Guru)
2009-01-08 11:15 AM
Re: Blank @SCRIPTDIR

in production you should use the 4.53 version of wkix32.

pepper
(Fresh Scripter)
2009-01-08 03:21 PM
Re: Blank @SCRIPTDIR

I just tried the 4.53 and the 4.61 version of wkix32, still blank \:\(

Mart
(KiX Supporter)
2009-01-08 03:37 PM
Re: Blank @SCRIPTDIR

@SCRIPTDIR works juts fine for me in 4.60.

Can you show the code you are using?


Richard H.Administrator
(KiX Supporter)
2009-01-08 04:30 PM
Re: Blank @SCRIPTDIR

 Originally Posted By: pepper
I just tried the 4.53 and the 4.61 version of wkix32, still blank \:\(


Are you launching kix32.exe and wkix32.exe in exactly the same way?


pepper
(Fresh Scripter)
2009-01-08 05:36 PM
Re: Blank @SCRIPTDIR

It happens even with a simple

 Code:
BREAK ON

? @SCRIPTDIR


I run at a command line:

kix32 c:\temp\test.kix
wkix32 c:\temp\test.kix

Kix32 works, Wkix32 doesn't. Both kix exe files are in c:\windows\system32.

I'm probably doing something really newbish here..


BradV
(Seasoned Scripter)
2009-01-08 06:08 PM
Re: Blank @SCRIPTDIR

The output is going to be in a window, not your command window. Try:

 Code:
? @SCRIPTDIR
Sleep 60


See if that makes a difference.


Richard H.Administrator
(KiX Supporter)
2009-01-09 10:21 AM
Re: Blank @SCRIPTDIR

Or pop-up in a messagebox, in case something tricky is stopping the new console window appearing:
 Code:
$=MessageBox("@@SCRIPTDIR='"+@SCRIPTDIR+"'","Show script directory")


NTDOCAdministrator
(KiX Master)
2009-01-09 07:12 PM
Re: Blank @SCRIPTDIR

 Code:
? "ScriptDir is: " + @SCRIPTDIR
? "KiX Ver is: " + @KiX

Get $Pause