#191706 - 2009-01-07 08:35 PM
Blank @SCRIPTDIR
|
pepper
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
|
|
|
|
#191709 - 2009-01-07 10:28 PM
Re: Blank @SCRIPTDIR
[Re: Björn]
|
pepper
Fresh Scripter
Registered: 2005-04-21
Posts: 21
|
Hiya It's 4.60.0.0 on Windows XP. Thanks!
|
Top
|
|
|
|
#191724 - 2009-01-08 03:21 PM
Re: Blank @SCRIPTDIR
[Re: pepper]
|
pepper
Fresh Scripter
Registered: 2005-04-21
Posts: 21
|
I just tried the 4.53 and the 4.61 version of wkix32, still blank
|
Top
|
|
|
|
#191727 - 2009-01-08 05:36 PM
Re: Blank @SCRIPTDIR
[Re: pepper]
|
pepper
Fresh Scripter
Registered: 2005-04-21
Posts: 21
|
It happens even with a simple
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
Seasoned Scripter
Registered: 2006-08-16
Posts: 686
Loc: Maryland, USA
|
The output is going to be in a window, not your command window. Try:
See if that makes a difference.
|
Top
|
|
|
|
#191739 - 2009-01-09 10:21 AM
Re: Blank @SCRIPTDIR
[Re: BradV]
|
Richard H.
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:
$=MessageBox("@@SCRIPTDIR='"+@SCRIPTDIR+"'","Show script directory")
|
Top
|
|
|
|
#191744 - 2009-01-09 07:12 PM
Re: Blank @SCRIPTDIR
[Re: Richard H.]
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
? "ScriptDir is: " + @SCRIPTDIR
? "KiX Ver is: " + @KiX
Get $Pause
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
2 registered
(morganw, mole)
and 414 anonymous users online.
|
|
|