We help IT Professionals succeed at work.

add service to Windows XP

TungVan
TungVan asked
on
Medium Priority
3,010 Views
Last Modified: 2012-06-22

Hi,

I have an executable located at C:\Program Files\Logger\Logger.exe

I want to add it to the services at the startup. How can I do it in Windows XP?

Thanks
Comment
Watch Question

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Commented:
Maybe you what just to run it at the startup ?
Then you simply need to create link or copy logger.exe to
C:\Documents and Settings\All Users\Start Menu\Programs\Startup
or to another drive letter if your "Documents and Settings" is not on C:
CERTIFIED EXPERT
Commented:
G'day TungVan,

Create your own user-defined services in Windows XP

This allow you to create a Windows user-defined service for Windows applications and some 16-bit applications (but not for batch files).

What is needed for Windows XP: The files are included with Windows XP.

Windows XP
At a MS-DOS command prompt (Start | Run | "cmd.exe"), type the following commands:


Creating Services:
  Adding Service (Note: Space between binpath= and "C:\ has to be there.
  <path>\sc.exe create "Service Name" binPath= "C:\Your Program.exe"
  Removing Service
  <path>\sc.exe delete "Service Name"

Controlling Services:
  Starting Service
  <path>\sc.exe start "Service Name"
  Pausing Service
  <path>\sc.exe pause "Service Name"
  Stoping Service
  <path>\sc.exe stop "Service Name"

This should work for you....

OziOi. Ian.
Commented:
This may be less confusing
 http://www.tacktech.com/display.cfm?ttid=197
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.