By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,641 Members | 2,110 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,641 IT Pros & Developers. It's quick & easy.

windows services

P: n/a
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 al*********@homeloancenter.com
thank you so much
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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" <al***@discussions.microsoft.com> wrote in message
news:02**********************************@microsof t.com...
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 al*********@homeloancenter.com
thank you so much

Nov 21 '05 #2

P: n/a
"alvis" <al***@discussions.microsoft.com> schrieb:
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
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.