Windows services 净停止:服务没有响应控制功能?

Windows services 净停止:服务没有响应控制功能?,windows-services,batch-file,windows-server-2008,service,Windows Services,Batch File,Windows Server 2008,Service,我正在尝试使用.bat脚本停止Windows Server 2008上的两个服务(使用net stop) 我得到一个错误,说: The service is not responding to the control function. More help is available by typing NET HELPMSG 2186. Press any key to continue . . . Terminate batch job (Y/N)? 你知道是什么原因导致了这一问题,

我正在尝试使用.bat脚本停止Windows Server 2008上的两个服务(使用net stop)

我得到一个错误,说:

The service is not responding to the control function.

More help is available by typing NET HELPMSG 2186.

Press any key to continue . . . 
Terminate batch job (Y/N)? 

你知道是什么原因导致了这一问题,以及如何克服这一问题吗?

你没有批量问题,你的服务有问题


NET STOP
正在尝试停止服务,但服务没有响应请求。

谢谢,是的,这就是问题所在。但是当我从命令行(而不是批处理)运行netstop到服务时,一切都正常。但是,当从批处理中运行netstop时,我遇到了这个错误。我在将旧代码移植到没有多个分区的较新框中时遇到了类似的问题。我试图在服务停止时写入一个不存在的日志文件,这是1061错误的结果。