Mace,

Glad it worked!

If you can stop the Kix script independent of the Service Control, why not add a line to the kix script to stop the service? Kind of like this concept:
 Code:
init stuff...

While $Service = 1

 do the service stuff..

 If $Should_We_Shutdown ; this is your independent shutdown detection logic
  $Service = 0
 EndIf
Loop

code to tidy up...

Run 'net stop my_kix_service'
Exit 0

The "Run net stop" just before the exit will insure the service is in a stopped state if the service script terminates itself.

Also, in the registry, I use
Parameter:Application = WKix32.exe
Parameter:AppParameter=path\name_of_script.kix args...

This lets you separate the service arguments (script and args) from the service application (Kix.exe)

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