I dont think there is one, I guess the usual approach would be to have two
applications (one the service) and a console using remoting to talk to it.
http://www.csharphelp.com/archives2/archive460.html
--
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
<ho*******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I'm trying to create a Windows service which can also be run as a
console app if it is started with some switch (eg -console). Is there
any way to do this?
Previously (in VC6) it's just been a matter of using the executable for
my service and run it from the command prompt. What's the equivalent to
this in C#?
TIA,
Håvard