So, to create a service for the Use the SC (service control) command, it gives you a lot more options than just start & stop. There are two ways to run Caddy as a service on Windows: sc.exe or WinSW. DESCRIPTION: SC is a command line program used for communicating with the NT Service Controller and services. However it is missing command line arguments and we will need to add it to the service parameters. Found an answer here which seems to solve the problem by adding /k start to the binPath parameter. You can supply the parameters within the quotes: sc create "Sample Service" binPath= "c:\sampleservice\SimpleWorkerService.exe --p1=one --p2=two" However, Ben said that didn't work for him and when I tried it on Windows Server 2008 it did create the cmd.exe process under local system, but it wasn't interactive (I couldn't see the At the Command Prompt, use the following syntax to create the new service: SC CREATE
Cheap Lake Cabins Near Me, 512x512 Minecraft Skins, Journal Of Economic Literature Pdf, Milton Tiffin Box Electric, Minecraft Can't Add Friends, Thompson Food Delivery,
sc create binpath with arguments