Solved

how do i create a windows service

Posted on 2003-10-27
9
197 Views
Last Modified: 2010-04-14
hi i want a program to run as a service, how do i do that? thanks
0
Comment
Question by:bens2333
  • 4
9 Comments
 
LVL 19

Accepted Solution

by:
Dexstar earned 50 total points
ID: 9629716
bens2333:

> hi i want a program to run as a service, how do i do that? thanks

Use this program:
      http://www.firedaemon.com/

Hope that helps,
Dex*
0
 

Author Comment

by:bens2333
ID: 9629817
Dex,
that helps, but i was hoping for a way to do it without a third party tool. Is there a windows or dosish way to make something run as a service?
0
 
LVL 19

Expert Comment

by:Dexstar
ID: 9629834
bens2333,

There is another tool in the NT Resource Kit that lets you do it.  I don't know if you consider that "3rd party" because it does come from Microsoft, but it doesn't come with Windows.  But without a utility program like that, there isn't a way to do it, unless you write the application yourself and write it to be a service.

Dex*
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 5

Assisted Solution

by:juliancrawford
juliancrawford earned 50 total points
ID: 9629871
The best tool to use comes from the resource kit - srvany.exe
With Srvany, you can configure any Windows application so that it runs as a service.

or you can directly edit the registry to the same effect ..
To specify an application to run as a service, you must use a registry editor to add information to the Windows registry.

Starting a Registry Editor
Click the Start button, and then click Run.
In the Open box, type regedt32, and click OK.

Starting an Application as a Service
Add a new Parameters subkey in the following registry location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService\ <-----creates a service called MyService
In the new Parameters subkey, create an:
Application entry with a data type of REG_SZ,
specify the full path of the executable file for the application (including the extension). For example:
Application: REG_SZ: D:\Tools\Vi.exe

:)
0
 
LVL 19

Expert Comment

by:Dexstar
ID: 9847654
What do you do with questions where the Asker isn't happy with the answer, not because it was wrong, but because it isn't the answer they wanted to hear?

Dex*
0
 
LVL 19

Expert Comment

by:Dexstar
ID: 10044532
I suggest a split between myself and juliancrawford ... I made the original suggestion, and juliancrawford gave more details.

Dex*
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article discusses how to implement server side field validation and display customized error messages to the client.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question