Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create Windows Service via Command Line
call sc.exe create MyNewServiceName binPath= "\"C:\path\to\bin\mybin.exe\" --service --config
= \"C:\path\to\config\myconfig.cfg\"" DisplayName= "My New Service" start= "auto"
logpath=C:\logs\mylog.log
dbpath=D:\db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.