相关疑难解决方法(0)

使用sc.exe创建服务时如何传入上下文参数?

使用时创建Windows服务:

sc create ServiceName binPath= "the path"
Run Code Online (Sandbox Code Playgroud)

如何将参数传递给Installer类的Context.Parameters集合?

我对sc.exe文档的阅读是这样的论证只能在最后传递binPath,但我没有找到一个例子或者能够成功地做到这一点.

windows-services

137
推荐指数
4
解决办法
39万
查看次数

标签 统计

windows-services ×1