
服务
wdt3385
这个作者很懒,什么都没留下…
展开
-
批处理实现启动服务和停止服务
下面介绍两种使用批处理来实现启动和停止服务。 使用自带的DOS工具中加入了一个sc.exe(Service Control)和net.exe (C:/WINDOWS/system32)的文件,恰好可以对服务的启动类型以及服务的启动或者关闭等进行操作,再利用DOS的批处理优势,就可以把上面提到的操作进行简化。方法 一: sc.exe常用功能: 1、更改服务的启动状态. 2转载 2012-08-29 09:59:46 · 1100 阅读 · 0 评论 -
windows安装、开启和删除服务的bat笔记
最近写了个服务,想把安装等过程写成批处理文件,如下 @echo offset SERVICE_NAME=USBcheckset EXECUTABLE=C:\ServiceUSB.exe if not exist %EXECUTABLE% goto end if "%1" == "" goto install if %1 == install goto ins原创 2012-08-29 11:38:59 · 917 阅读 · 0 评论 -
学习tomcat安装服务脚本
@echo offrem Licensed to the Apache Software Foundation (ASF) under one or morerem contributor license agreements. See the NOTICE file distributed withrem this work for additional information r转载 2012-08-29 15:33:10 · 733 阅读 · 0 评论 -
让程序作为服务运行(srvany.exe,instsrv.exe)
http://download.youkuaiyun.com/detail/zy27ok/2248126srvany.exe,instsrv.exe介绍如下:让程序作为服务运行 想让一个程序在启动系统的时候自动运行,你有什么好办法?添加到启动组?那如果别人删除掉就不管用了。如果你使用了Windows NT/2000/XP,就可以试试把这个程序添加为一个服务,这样只有拥有权限的人才可以更改服转载 2012-08-29 09:33:06 · 1119 阅读 · 0 评论 -
SC Create 创建一个Windows系统服务
用sc create----创建一个服务(增加到注册表中)如下:在命令行模式下执行: sc create TestService binpath= "c:\in estapp.exe" displayname= "TestService" depend= Tcpip start= auto注意这里的格式,“=”后面是必须空一格的,否则会出现错误。转载 2012-08-29 10:10:06 · 705 阅读 · 0 评论