Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I start an app as a service???

Status
Not open for further replies.

ZemogSC

Programmer
Sep 29, 2003
30
US
I have an app that I would like to start as a service. I want the app to start when the machine is turned on, and not be dependent upon someone actually logging on to the machine for it to start.

We were starting the app by putting it in the startup folder, for allusers, but this weekend we realized that if the machine is rebooted and no-one logs on, the app will not start. 99.9% of the time someone logs on to it immeadiately after reboot, so it was really a non-issue. But of course, a reboot on the weekend ends up meaning that the process wasn't running for almost three days. So, to fix this problem, we'd like to start it as a service.

I hope I've explained it good enough for someone to be able to "cipher" my rambling and give me a good answer.

Thanks,

 
This has actually been asked/answered many times. Please do a keyword search.

Thanks.
Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Thanks for the smart response.

I did do a search first. I ended up on the FoxPro forum looking at junk that didn't apply. I then tried this forum only. You know how much stuff comes up with the word service(s)???

I am well aware of how to use a BBS, but feel that pointing me to a completely useless link not pertaining to the question asked is just meaningless.

Are we not all here to help one another, or is this just a place for some to make themselves feel important.

After this rant, I really don't expect anyone to help me. I use several of the other forums on this site, and have never seen this type of attitude.

I would appreciate some help if someone would like to help.

If you think this question is "repetative" and that I should be able to find an answer by doing further searches, just ignore this post and let it disappear into the land of forgotten posts.

Looking for help, not attitude...
 
"service" is far too broad a term to return a meaningful result set.

Typing "run as service" into the keyword search and ticking 'All Words' gets a number of hits, the second of which is entitled "VB programme as a service NT4" (thread222-706431) which in turn leads to thread222-706431

And the FAQ that chiph pointed you to contains the more-or-less accepted guidelines on how to get the best from this particular forum. Other forums may have similar guidelines, although they may differ in detail; each forum has its own microculture.
 
If you have access to the Windows NT Resource Kit it provides utilities to create Windows Services. For more info have look at MSDN library article Q137890

Hope this helps

ps Ive never tried it myself.
 
Are we not all here to help one another, or is this just a place for some to make themselves feel important.

After this rant, I really don't expect anyone to help me. I use several of the other forums on this site, and have never seen this type of attitude.


Sorry about that -- it's just that after seeing the same question over and over again, it gets a little old, if you know what I mean.

No disrespect intended.

Note that if the search built-into the site isn't giving you good answers, you can use Google to search. Just include site:Tek-Tips.com in your query, and it will restrict it to the forums.

This got me some decent results:

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Thanks for the reply. I understand fully about seeing the same questions repeated over and over again on forums. I was also having a bad day :)

I'm not usually that cranky...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top