使用sc create将带有额外参数的.exe作为windows服务运行

JMa*_*Man 1 service command-prompt arelle

我正在尝试在命令提示符下运行:

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

这不会成功,因为:optionname中有.

我似乎无法找到正确的合成语

fox*_*ive 5

试试这个:

sc create mynewservice binpath="C:\Program Files\Arelle\arelleCmdLine.exe --webserver localhost:10100"
Run Code Online (Sandbox Code Playgroud)