I think I know the problem...

I'm not interested in services as such. What I want is to be able to pass
parameters to a compiled kix script.

I want to use the compiled script (whatever.exe) with parameters ie.
whatever.exe $path=\\server\share
The reason is that I can then use the exe file with different params to check
different folders. If I hard code the path info then I'll have to recompile
the script everytime I add or change a path.

I think my reference to running it as a service has misled the thread.

I hope this is clearer.

acmp<><
_________________________
Every day is a school day