Just played with this.. quite handy, actually.

I associated .KIX with Kix32.exe. When I edit the OPEN association in the registry and change the command from:
c:\local\bin\kix32.exe "%1"
to:
c:\local\bin\kix32.exe "%1" "%*"

I can create a kix script and invoke it like any other bat or exe file:
Code:
KixScript -a -q -362

will return an array of 3 elements. The first element is the path to the kix32 executable (C:\local\bin\kix32.exe), the second is the path to the script (C:\work\test.kix), and the third is all the command line args (-a -q -362).
The third arg can be split and parsed easily.

I have experienced Allen's issue - the last line of the script must be a Quit 0 - a small price to pay for this feature. The mod that Les offered only seems to work if you continue to use the $VAR=value method, although it does not require the quit.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D