| Sign In/My Account | View Cart |
| 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 |
||
Showing messages 1 through 1 of 1.
protected override void OnStart(string[] args)
{
// TODO: Add code here to start your service.
if (args.Length > 0)
{
string myValue = args[0].Trim();
}
}