cl.exe json.c ShirleyService.c Shirley.c /FeShirley.exe
cl.exe json.c ShirleyService.c ShirleySvc.c /FeShirleySvc.exeAssume the folder of executable files is "C:\Program Files\Shirley".
Create Shirley Service (Require administrator permission):
sc.exe create "Shirley Service" binPath= "C:\Program Files\Shirley\ShirleySvc.exe" start= auto
mkdir "C:\Program Files\Shirley\log"Add service:
Shirley.exe Add "Hello Service" "\"C:\Program Files\Hello.exe\" -c \"C:\Program Files\Hello.ini\""Remove service:
Shirley.exe Remove "Hello Service"Start all (Require administrator permission):
sc.exe start "Shirley Service"Stop all (Require administrator permission):
sc.exe stop "Shirley Service"Note: You need to restart "Shirley Service" to start (or stop) a newly added (or removed) service.
Delete Shirley Service (Require administrator permission):
sc.exe delete "Shirley Service"Delete application folder.