使用配置文件在 Windows Xp 中创建服务

发布于 2024-10-04 08:33:12 字数 151 浏览 0 评论 0原文

这是我为我的程序创建服务的命令。程序通常使用配置文件,但是当我创建此服务时,程序无法作为服务启动。

C:\>sc create MalwareService binPath= "C:\Program Files\mbam.exe"

This is the command which I created a service of my program. Program normally uses a config file, but when I created this service, program could not start as a service.

C:\>sc create MalwareService binPath= "C:\Program Files\mbam.exe"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

喜爱皱眉﹌ 2024-10-11 08:33:12

您不能将任何随机程序作为服务来运行;程序必须遵循特定的协议

You can't just run any random program as a service; there is a certain protocol the program has to follow.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文