Service from c9 or higher?

how to start and stop windows service from c9 or higher ??
and do not be by command of msdos

with administrator permissions

I use SelfService from Capesoft and works like a charm


I want to stop and turn on a windows service on demand

Yes, SelfService not only allows you to create a service from one of your applications but if you dig into the code you can see the functionality for controlling a service (create, delete, start, stop, status, etc).
Without SelfService you can either look into the service APIs. Here’s a starting point:
Or use the SC command line utility via RUN() or ShellExecute.

1 Like

Is doable and as Rick describes there’s a lot more you can do.

1 Like

Another option is creating a utility with Setupbuilder. But Self Service works well too.

I do not need to create service… i need start/stop service of windows, for example “Service telefonia”, start when starting application, and stop when close application…


Take a look at Odd Job from CapeSoft.
I am sure it will be able to do it.


Johan de Klerk

Hi franky,

I think you are getting confused here.

What Rick and others are trying to tell you is that SelfService isn’t just for creating services but also has code to allow you to do exactly what you are asking for.

Take a look at the documentation here

You will see two methods specifically for your needs. StopService and StartSerice.

1 Like

yes, this is the easiest way, as simple as nail.

1 Like