[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

how do i create a windows service

hi i want a program to run as a service, how do i do that? thanks
0
bens2333
Asked:
bens2333
  • 4
2 Solutions
 
DexstarCommented:
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
 
bens2333Author Commented:
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
 
DexstarCommented:
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
juliancrawfordCommented:
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
 
DexstarCommented:
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
 
DexstarCommented:
I suggest a split between myself and juliancrawford ... I made the original suggestion, and juliancrawford gave more details.

Dex*
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now