Page 1 of 1 1
Topic Options
#191706 - 2009-01-07 08:35 PM Blank @SCRIPTDIR
pepper Offline
Fresh Scripter

Registered: 2005-04-21
Posts: 21
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 \:\)
Top
#191708 - 2009-01-07 10:23 PM Re: Blank @SCRIPTDIR [Re: pepper]
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
Heyya. What version is this for, on what kind of enviroment?
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!

Top
#191709 - 2009-01-07 10:28 PM Re: Blank @SCRIPTDIR [Re: Björn]
pepper Offline
Fresh Scripter

Registered: 2005-04-21
Posts: 21
Hiya \:\) It's 4.60.0.0 on Windows XP. Thanks!
Top
#191718 - 2009-01-08 02:33 AM Re: Blank @SCRIPTDIR [Re: pepper]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11616
Loc: CA
4.61 beta is out now
Top
#191722 - 2009-01-08 11:15 AM Re: Blank @SCRIPTDIR [Re: NTDOC]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
in production you should use the 4.53 version of wkix32.
_________________________
!

download KiXnet

Top
#191724 - 2009-01-08 03:21 PM Re: Blank @SCRIPTDIR [Re: pepper]
pepper Offline
Fresh Scripter

Registered: 2005-04-21
Posts: 21
I just tried the 4.53 and the 4.61 version of wkix32, still blank \:\(
Top
#191725 - 2009-01-08 03:37 PM Re: Blank @SCRIPTDIR [Re: pepper]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4671
Loc: The Netherlands
@SCRIPTDIR works juts fine for me in 4.60.

Can you show the code you are using?
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#191726 - 2009-01-08 04:30 PM Re: Blank @SCRIPTDIR [Re: pepper]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
 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?

Top
#191727 - 2009-01-08 05:36 PM Re: Blank @SCRIPTDIR [Re: pepper]
pepper Offline
Fresh Scripter

Registered: 2005-04-21
Posts: 21
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..


Edited by pepper (2009-01-08 05:37 PM)

Top
#191728 - 2009-01-08 06:08 PM Re: Blank @SCRIPTDIR [Re: pepper]
BradV Offline
Seasoned Scripter
****

Registered: 2006-08-16
Posts: 685
Loc: Maryland, USA
The output is going to be in a window, not your command window. Try:

 Code:
? @SCRIPTDIR
Sleep 60


See if that makes a difference.

Top
#191739 - 2009-01-09 10:21 AM Re: Blank @SCRIPTDIR [Re: BradV]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Or pop-up in a messagebox, in case something tricky is stopping the new console window appearing:
 Code:
$=MessageBox("@@SCRIPTDIR='"+@SCRIPTDIR+"'","Show script directory")

Top
#191744 - 2009-01-09 07:12 PM Re: Blank @SCRIPTDIR [Re: Richard H.]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11616
Loc: CA
 Code:
? "ScriptDir is: " + @SCRIPTDIR
? "KiX Ver is: " + @KiX

Get $Pause

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 152 anonymous users online.
Newest Members
jtpk2022, Rayvenhaus, Insecurity, KGSOFT, fobrien
17791 Registered Users

Generated in 0.065 seconds in which 0.023 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org