add service to Windows XP

Posted on 2006-03-26
Last Modified: 2012-06-22


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?

Question by:TungVan
    LVL 13

    Assisted Solution

    LVL 11

    Expert Comment

    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:
    LVL 15

    Accepted Solution

    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.
    LVL 2

    Assisted Solution

    This may be less confusing

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, ( because one time I did this and I essentially had a bricked …
    Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now