Run .exe with extra parameters as windows service with sc create

10.1k views Asked by At

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 optionname.

I can't seem to find the correct syntaxt

1

There are 1 answers

2
foxidrive On BEST ANSWER

Try this:

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