GEGeek 
   I don't reinvent the wheel, I just link to it.                                                                          Control-F To Search This Page!
Cheat Sheets Search Engines Diagnostics Misc Tech

GEGeek's Articles

Home

Windows

Software

How To Guides

Tutorials

Hardware

Security

Linux

GEGeek Articles

 

 

 

 

 

 

 

 

 

 

 

 

 

 

   
 

How to create a Windows service

 

This will help you create a Windows service that will allow you to start programs automatically after your computer starts up, or allows programs to run in the background.

 

Open a command prompt.

 

Start - Run - cmd

A command window should appear.

 

At your command prompt, use the "sc create" Windows command to create your service.

The correct syntax is as follows:

sc create servicename binPath= "location of your exe program"           Use quotes if spaces are in the path.

ex: C:\>sc create MalwareService binPath= "C:\Program Files\Malwarebytes\Anti-Malware\mbam.exe"

                  always use a space between binPath= and the start of the path as shown above

 

Now run Start - Run - services.msc   services windows should appear

and find your service and right click for properties

set the startup to automatic and enable it

 

that's it

 

If you ever want to delete your service, the command is:    sc delete servicename

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

   
   

hit counter