当你的才华不能撑起你的野心时,就是你该选择学习的时候了!

the specified service is marked as deletion,can not find the file specified

使用命令注册windows service

sc create CCGSQueueService binpath= "D:\DKX4003\services\xxx.xx.xx\xxx.exe"

在服务资源管理器中找到CCGSQueueService服务,启动提示“can not find the file specified.”不能找到指定的文件。

原因:

路径中不要有特殊符号,比如"."。所以把路径改成“sc create CCGSQueueService binpath= "D:\DKX4003\services\xxxxxx\xxx.exe"”重新注册服务后启动,可以了。

 

同时用命令卸载windows service时提示“the specified service is marked as deletion”。

执行:sc delete CCGSQueueService

原因:服务资源管理器中正在操作CCGSQueueService服务,就会有这个提示。

解决办法:关闭服务资源管理器,在打开则CCGSQueueService服务不存在了,写在完成。或者命令行中执行:sc query CCGSQueueService 查看则服务不存在。

 

posted @ 2019-07-23 14:46  hofmann  阅读(325)  评论(0编辑  收藏  举报