Last active
August 29, 2015 14:16
-
-
Save cmlewis/7e01faee1c3da938b6c5 to your computer and use it in GitHub Desktop.
Create Windows Service via Command Line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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