Hi!
Is it possible to send a custom command from a .NET console
application to my windows service?
Thanks,
Stefan
Klaus H. Probst - 29 Apr 2004 06:36 GMT
Not without some sort of managing transport in the middle, like TCP or pipes
or MSMQ.

Signature
Klaus H. Probst, MVP
http://www.vbbox.com/
> Hi!
>
[quoted text clipped - 3 lines]
> Thanks,
> Stefan
Steve - 05 May 2005 04:22 GMT
Take a look at ServiceController.ExecuteCommand. You use this in the client. To catch the command you must override ServiceBase.OnCustomCommand in your service.
It's rather limited. You can pass in an integer from 128 to 256 and nothing is returned. For true two-way communication you will need a transport layer as Klaus suggests.