startdir shall give you the initial start point.
so, if kix is called via commandline at c:\, startdir will be c:\ even though the kix and script can be where ever.

scriptexepath is only half true as it gives the dir.
it should also give the filename.
running:
c:\scripts\mykix32.exe

can't be recognized otherwise.
I think this comes back to the request of @commandline.
it's the simpliest thing and it has so much info on it.
_________________________
!

download KiXnet