Coder Social home page Coder Social logo

ztautoservice's Introduction

ztAutoService

项目介绍

  • windows开机自启指定程序的服务,不需要用户登录。
  • 本项目以vs2012建立,可自行升级

配置文件说明

  • 在exe文件目录放置一个名为config.ini的配置文件,内容按如下格式
  • [common]
  • number = 2
  • ;需要管理的进程数量,各个进程的配置分别是从file1到fileN
  • [file1]
  • path = D:/a.exe
  • ;可执行程序、脚本等文件路径或命令
  • cmd = -a -b -c -d
  • ;进程启动参数
  • protect = 1;
  • ;是否启用进程守护,0表示启动后不守护,其他值守护进程
  • rshour = 5
  • ;进程每天定时重启的时间,为小时,有效值0~23
  • rsdur = 8
  • ;进程运行达到多少小时就重启一次,>0时有效
  • ;rshour和rsdur都无效时不会定时重启。若都有效,两者都会生效
  • [file2]
  • path = D:/b.exe
  • cmd = -a -b -c -d
  • rsdur = 100

安装教程

  • 需要使用管理员权限的控制台进行系统服务的安装与卸载
  1. as -i 安装系统服务并启动
  2. as -u 卸载系统服务
  3. as -s 以用户进程方式执行程序,作为进程管理工具使用
  4. as -c 查看该服务的输出信息【未实现】

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.