• C

how to start my service after all of services were started

Hi experts,

I built my service but now I want to my service is started when others services were started. Could you tell me whether or not I can do it? what functions I can use for configuring it?

Thanks you.
tungpnAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

x4uCommented:
Are you talking about a Window NT (or 2k/XP) service?

In this case you need to install the service first, so that the Windows service control manager knows about it. For this you can either use the instsrv command or implement the installation into your service itself. To see how to use instsrv just run it from the cmmand line and it will show it's arguments with examples.

If the service is properly installed you can configure, start and stop with the services control panel (just run services.msc from the command line). I.e. setting the startup type to Automatic in the service's properties will start it automatically when Windows is started.
0
cwwkieCommented:
take a look at the DependsOnService registry key. This list the service(s) which must start before that service can start.
0
cwwkieCommented:
Excuses, that should be DependOnService (without the 's')
more information:
    http://www.petri.co.il/delay_services_in_windows_2000_xp_2003.htm
    http://www.jsifaq.com/subA/tip0000/rh0069.htm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.