I don't think you understand the %0\..% thingy.  Try the following two examples and maybe it'll enlighten.

First a batch file test.bat
code:
 echo %0\..% this is what you get in a batch file
kix32 test.txt
exit

Then a Kix script test.txt
code:
 break on
"%0\.." + ' <= This is what "%0\.." gives you in KiX' ?
"%0\..%" + ' <= This is what %"' + '0\..%" gives you in KiX' ?
ExpandEnvironmentVars("%0\..%") + ' <= This is what ExpandEnvironmentVars(%"' + '"0\..%) gives you in KiX' ?
"%0\..\ls.bmp" + ' <= This is what %"' + '0\..\ls.bmp" gives you in KiX' ?
get $



[ 29. September 2002, 17:50: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.