Running an application as Windows Service

In windows there is a command line utility named ” SC ” so I will be using that to create a windows service to run my executable in background. The command to create services is very simple:

Steps to create:

  1. run shell with admin rights (cmd  with run as administrator)
  2. sc create service_name binpath=”exe file full path”         C:\ sc  create myhiddenapp  binpath=”C:\utilities\myapp.exe”

Steps to delete:

  1. syntax:   sc delete service_name                                      C:\ sc delete myhiddenapp
Advertisements

Author: Abdul Salam

I am just a learner

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s