window服务不断自动启动

来源:互联网 发布:linux虚拟机home扩容 编辑:程序博客网 时间:2024/05/17 02:31
+++++++++++++++++++++++
使用windows工具
instsrv.exe
srvany.exe
注册windows服务
然后 
建立XX.bat批处理文件,写入:        net stop 服务名(关闭服务)        net start 服务名(开启服务)    开启WIN计划任务      设定时段运行XX.BAT                                  服务名要注意不是服务的英文名称。
net start "Oracle BI Java Host"net start "Oracle BI Presentation Server"net start "Oracle BI Scheduler"net start "Oracle BI Server"
++++++++++++++++++++++++
杀掉某进程
wmic process where "(CommandLine LIKE '%%D:\\soft\\monit.py%%')" delete

比CMD更强大的命令行WMIC

0 0