windows services

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
i created this killer windows service, well it works :-)
any way now the people that will be using it want to use parameters
when starting the service, and have default parameter if the service is
started automaticly. could you please tell me how to find an article that
explains how to acheive these goals. you couls respond to my email address
wich is (e-mail address removed)
thank you so much
 
why not just have the windows service read its configuration from a config
file. Then, you wouldn't need parameters.

Off the top of my head, I don't know of a way to start the service with
parameters. There may be one... I just don't know it :-)

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
alvis said:
any way now the people that will be using it want to use parameters
when starting the service, and have default parameter if the service is
started automaticly.

\\\
Public Module Program
Public Sub Main(ByVal Args() As String)
If Args.Length > 0 Then

' 'Args' is a string array that contains the command line
' parameters' values.
End If
End Sub
End Module
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top