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

标签 service command-prompt arelle

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

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

这不会成功,因为选项名称中有 :

我似乎找不到正确的语法

最佳答案

试试这个:

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

关于service - 使用 sc create 将带有额外参数的 .exe 作为 Windows 服务运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17993552/

相关文章:

C# - 可移植类库 "XmlElement does not exist in the namespace System.XML"

windows-7 - 更改 Windows 7 中命令提示符的默认启动目录

c - 如何在命令提示符下通过 C 文件运行输入 txt 文件到输出 txt 文件?

ruby - 如何在 IRB 中加载 ruby​​ 脚本?

datetime - 从<开始日期>/<持续时间> XBRL-JSON格式提取elasticsearch日期

python - 尝试从 arelle 模块导入 Cntlr 时出现语法错误

android - 为什么应用程序服务重启,但无法重启?

android - 如何在最新 API 级别的服务中运行我的倒计时器?

delphi - EXE文件右键菜单