我想编写一个执行以下操作的批处理文件:
到目前为止我用Google搜索的代码示例结果不起作用,所以我决定不发布它们.
通过以下方式启动服务:
net start "SERVICENAME"
windows windows-services batch-file scheduled-tasks
我想知道如何使用批处理文件检查服务是否正在运行
例如
如果xxxx服务正在运行,请转到启动stage2.bat否则转到echo服务未运行
任何帮助,将不胜感激
谢谢
windows service batch-file
batch-file ×2
windows ×2
scheduled-tasks ×1
service ×1
windows-services ×1