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

Making a program or .exe run as a service in XP 1

Status
Not open for further replies.

JeffPr

Technical User
Sep 3, 2003
78
CA
I want to have a program or .exe run as a service in the background of windows XP, i.e. when you type services.msc, I want to be able have a program running as service, like my web server and stuff like hotmail popper for thunderbird. Please note that I don't want to add this to a scheduled task, somebody told me that it is possible to actually add it as a service.

Regards,

"We have no right to assume that any physical laws exist, or if they have existed up until now, that they will continue to exist in a similar manner in the future." ~ Max Planck
 
Thanks for your post. As I mentioned above, I am looking for something that I can work with in windows XP, and that article is specific to windows NT, although it sounds exactly what I am looking for. I'm wondering if the same procedure could be used for windows XP with the same results?

"We have no right to assume that any physical laws exist, or if they have existed up until now, that they will continue to exist in a similar manner in the future." ~ Max Planck
 
If you are running XP Pro which since you posted in this forum I am assuming you are... it is NT based and should work fine :)

Bill
 
try this in cmd prompt:

filename.exe -k install



When I took office, only high energy physicists had ever heard of what is called the
Worldwide Web.... Now even my cat has its own page.
-Bill Clinton (1946 - ), announcement of Next Generation Internet initiative, 1996
 
You will need the two small Microsoft programs in order to set up your service. Instsrv.exe is the program used to create a Windows service, and Srvany.exe is a program that allows almost any other program to run as a service. These files are available in Microsoft's Windows Resource Kit, at various Internet sites, or you can just download them both here.




Read the HowTo article -
Running the Genome@Home Client as a Service in Windows NT/2000/XP
 
Thanks for the posts folks, very helpful as usual. I will let you know how I make out.

Regards,

"We have no right to assume that any physical laws exist, or if they have existed up until now, that they will continue to exist in a similar manner in the future." ~ Max Planck
 
You could use FireDaemon. It's obviously a third party app, but works very nicely for adding (and then managing) your *.exe as a standard Windows service, under any windows operating system.
 
Thanks, FireDaemon did the trick.

Regards,

"We have no right to assume that any physical laws exist, or if they have existed up until now, that they will continue to exist in a similar manner in the future." ~ Max Planck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top