How could I give parameters to my Windows Service?

hi everyone,

From my Service Manager built-in in MMC no problem at all because I can perfectly allocate both parameters in "start parameters" box but how do the same from NET START command

Or even better, how from another VB application

I've tried to do this: NET START "MyService", "sql1","Bd1" but it did not work.

Let me know if possible do (at least) from DOS session.

Thanks in advance for your time.




Answer this question

How could I give parameters to my Windows Service?

  • Barak Ori

    I've seen sc utility but it doesn't support parameters either



  • Minherz

    This is not related to .NET netowrking. Moving to .NET Base forum.

  • How could I give parameters to my Windows Service?