Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how do i create a windows service

Posted on 2003-10-27
9
196 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Images sometimes not printed 6 484
Need to recover old Windows backup files in Windows 7 6 675
Windows Foriegn Disk 3 137
reboot server with scheduled time and week base 4 32
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…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

808 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