MoonPoint Support Logo

 


Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals



Advanced Search
September
Sun Mon Tue Wed Thu Fri Sat
6
         
2013
Months
Sep


Fri, Sep 06, 2013 7:57 pm

Creating a Service for a Windows System

You can create a new service on a Windows system, including Windows 8, using the sc command. To create a new service named "ExampleService", the command below could be issued from a Command Prompt:
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\Windows\system32&sc create ExampleService binpath="C:\Program Files (x86)\ExampleApp\Example.exe"
[SC] CreateService SUCCESS

C:\Windows\system32&

To delete the service you created, e.g., ExampleService, you can use the command sc delete servicename, e.g.:

C:\Windows\system32>sc delete ExampleService
[SC] DeleteService SUCCESS

Once you have created a service, you can modify it, e.g., to have it start automatically by using services.msc to bring up the Windows Services list.

C:\>services.msc

Or you can get to the services list through the Control Panel, which you can do on a Windows 8 system by selecting System and Security from the Control Panel, then select Administrative Tools, then Services. Double-click on the service you wish to modify and make any changes you wish, for instance changing the startup type to Automatic so that the service starts whenever the system boots.

References:
  1. Create Windows service from executable
    Date: August 27, 2010
    stackoverflow
  2. How To Create a User-Defined Service
    Microsoft Support

[/os/windows/commands] permanent link

Once You Know, You Newegg AliExpress by Alibaba.com

Shop Amazon Local - Subscribe to Deals in Your Neighborhood

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo