百度空间 | 百度首页 
 
查看文章
 
windows安装服务命令sc
2008-12-07 13:50

1. 安装服务
sc create 服务名称 binpath= "服务执行的命令" displayname= "显示名称" depend= Tcpip start= auto

其中网络连接使用TCP/IP,自动启动

2. 删除服务
sc delete 服务名称

删除后可能需要重启动才行

3. 修改配置
sc config 服务名称 binpath= "新命令" displayname= "新显示名称" depend= Tcpip

4. 设置为自启动
sc config 服务名称 start= auto


类别:技术 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu