Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Developing Windows Services
Subject:   Sending parameters to windows services
Date:   2004-01-03 00:42:38
From:   anonymous2

I need to send parameters to a windows service,
how can i do that. The service invokes automatically when windows launches
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Sending parameters to windows services
    2004-01-14 13:50:53  anonymous2 [View]

    I believe in the:

    protected override void OnStart(string[] args)
    {
    // TODO: Add code here to start your service.

    if (args.Length > 0)
    {
    string myValue = args[0].Trim();
    }
    }