only tested with kix32.exe from KiXtart v4.50rc1
I would expect the code below to output 2 directories, but it doesn't, only the first is printed. @ScriptDir inside a function gives a blank string, same if the function is used with INCLUDE.
Code:
? @ScriptDir
ScriptDir_test
Function ScriptDir_test
? @ScriptDir
EndFunction
it took me a fair amount of time (and curses) to figure it finally out
Update:
Try the following, not what I would have expected...
Code:
? @ScriptDir
? @ScriptName
? @ScriptExe
ScriptDir_test
Function ScriptDir_test
? @ScriptDir
? @ScriptName
? @ScriptExe
EndFunction
Gives the following output
Code:
H:\Documenten
sd.KIX
KIX32.EXE
KIX32.EXE
Edited by iffy (2005-06-16 04:49 PM)