Board logo

标题: [求助]请教sc.exe的用法 重要! [打印本页]

作者: gamevyo     时间: 2007-12-27 18:55    标题: [求助]请教sc.exe的用法 重要!

sc create 服务名字 binpath=空格+EXE文件路径 type= own
start= auto

sc create TestService binpath= c:\windows\mine.exe type= own start= auto

这是网上流行的说法 百度前20几页的结果都是一模一样的文章

我在xp上测试了一下 不行 重起后添加的服务不能启动
手动启用的话 提示说
1053:The service did not respond to the start or control request in a timely fashion
求详解
我的系统是英文的XP
作者: vkill     时间: 2007-12-27 21:39
sc 添加服务的方法是没有错的,主要是 你添加的这个 exe 本声就不支持以服务方式来启动,要有兴趣去研究下 apache.exe
作者: gamevyo     时间: 2007-12-28 00:19
哦  明白了  我去看看apache.exe 是什么




欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) Powered by Discuz! 2.5