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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Program as a Windows Service 1

Status
Not open for further replies.

xterra

Programmer
Apr 5, 2001
71
US
Hi All,

I need my program to run as a service because I need it to run when the Server is booted. Right now my program works but it only works when the Server has been logged in. The program is fairly simple it just watches a directory and updates the database when it changes. I have a form right now but don't need it, I just have it minimized and hidden if that makes a difference. Anyone know how to run your program as a service?

Thanks,

Adam
 
Serach this forum for NTSVC.ocx, which allows your porgram to run as a service.

There are also other (not free) solutions being one of them.

However, you need to ensure that either your program doesn't interact with the user (no message boxes etc) or that you ensure that the "interact with the desktop" check is set in the service properties.

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top