Create a Service on Windows

Create:

SC CREATE MyService binPath= "C:MyApp.exe" start= auto DisplayName= "My Service"

Start:

SC START MyService

Delete:

SC DELETE MyService
Advertisements