windows-servicescommand-promptarelle

Run .exe with extra parameters as Windows Service with sc create


I'm trying run following in my command prompt:

sc create mynewservice binpath="C:\Program Files\Arelle\arelleCmdLine.exe" --webserver localhost:10100

This won't succeed since there is the : in the option name.

I can't seem to find the correct syntax.


Solution

  • Try this:

    sc create mynewservice binpath="C:\Program Files\Arelle\arelleCmdLine.exe --webserver localhost:10100"