对联 ·故事 ·史海钩沉 ·人物档案 ·地方风俗 ·谚语大全 ·讽刺与幽默 · 赚钱 · 法律 · 在线教研 · 会员中心 · 心理测试 · 魔鬼词典 · 顺口溜
 
主页特效 网页特效 百家姓
娱乐 歇后语 绕口令 脑筋急转弯
 
谚语 谜语 名言 邮政编码
便民 酒方 验方 偏方 站长工具  
 
算命 风俗 手相 爱情
女孩 音乐 面相 星座 血型
 
饮食 穴道 偏方 医药
生活 软件 硬件 解梦 高考



   JS特效



实用工具
便民服务 加密解密
 
魅力高密 民间故事 Flash教程 PS教程 最新国内新闻
新华字典 黄道吉日 英语园地  万年历 Html2anycode
  首页 | 美图 | 短信 | 安全 | 校园 | 网站 | 游戏 | UFO | 文秘 | 生活 | 信息技术 | 论文 | 人生 | 情感 | 日记
返回首页
当前位置: 主页 > 软硬兼施 > 软件资讯 >

把任何可执行文件(包括批处理)当作服务(2)

时间:2010-11-09 23:06来源:未知 作者:明亮 点击:
介绍: ■ 将任何可执行文件作为系统服务运行。 ■ 开始主要是为了移植一些linux 的 daemon;也可以用于在启动任何应用程序和维护性角本。 ■ 安静地运
  
介绍:

  ■ 将任何可执行文件作为系统服务运行。
  ■ 开始主要是为了移植一些linux 的 daemon;也可以用于在启动任何应用程序和维护性角本。
  ■ 安静地运行,除非指定了 Interactive 模式,否则不会弹出任何窗口。
  ■ 无需登陆,系统启动后自动运行,无需等待用户登陆完毕。
  ■ 作为附带的功能,支持启动、停止和删除任何系统服务。
  ■ 完整接管系统服务管理器的指令(启动、停止等等)。运行的程序终止后,自动向服务管理器提交状态同时自身退出,不会驻留内存。

≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
帮助屏幕:


C:\Documents and Settings\Administrator>
#runassrv

===========================================================================
  Run As Service Ver 1.1.0.625 by BaiYang / 2004 - 2006, Freeware
===========================================================================
Run any program as a Service

USAGE: runassrv <Action> <Options>
===========================================================================
Actions:
  add          - Add a Service.
  remove       - Remove a Service.
  start        - Start a Service.
  stop         - Stop a Service.
  pause        - Pause a Service.
  continue     - Continue a paused Service.
  control      - Control a service by send it a op-code
  listsrv      - List all installed services on local system
  listgrp      - List all service load order groups on local system (by start
                 order).
  -h           - this screen
===========================================================================
Options:
  -cmdline     - when the service start, witch program you want to run.
  -name        - the service name.
  -dispname    - service's display name in service manager
  -desc        - service's description in service manager
                   DEFAULT: none
  -type        - service type, can be:
                   FileSystemDriver
                   KernelDriver
                   OwnProcess (DEFAULT)
                   ShareProcess
                   InteractiveProcess
                 NOTE: set this option incorrectly may endanger your system!
  -starttype   - service start type, can be:
                   SystemStart
                   BootStart
                   AutoStart (DEFAULT)
                   DemandStart
                   Disabled
                 NOTE: set this option incorrectly may endanger your system!
  -errctl      - service error control policy, can be:
                   ErrorIgnore
                   ErrorNormal (DEFAULT)
                   ErrorSevere
                   ErrorCritical
                 NOTE: set this option incorrectly may endanger your system!
  -group       - specify service load order group
                   DEFAULT: none
  -depen       - names of services or load ordering groups that the system
                 must start before this service, delimited by '/'
                   DEFAULT: none
  -user        - specifies the name of the account under which the service
                 should run.
                   DEFAULT: LocalSystem
  -pass        - contains the password to the account name
                   DEFAULT: none
  -priority    - priority of the program you want to run, can be:
                   Idle
                   BelowNormal
                   Normal (DEFAULT)
                   AboveNormal
                   High
                   RealTime
  -unstoppable - make service unstoppable by system service control manager.
  -opcode      - for "control", specify the operation code.
  -logfile     - specify the logging target.
                   DEFAULT: don't log to file.
  -loglevel    - specify the lowest logging level, can be:
                   DebugOnly (Most Detail)
                   Info
                   Warning
                   Error (DEFAULT)
                   FatalError
                   Disabled (Close Logging Output)
===========================================================================
Special Options With "listsrv":
  -name        - list service name that match the wildcard pattern
                   DEFAULT: *
  -dispname    - service display name's wildcard pattern.
                   DEFAULT: *
  -pid         - service belong to specified process.
                   DEFAULT: any
  -type        - specify service types to be match, delimite by "/".
                   DEFAULT: any
  -starttype   - specify service starttypes to be match, delimite by "/".
                   DEFAULT: any
  -group       - service belong to the load order group
                   DEFAULT: any
  -state       - service's current state, can be:
                   active
                   inactive
                   DEFAULT: any
===========================================================================
Examples:
  runassrv add /cmdline:"c:\tools\myapp.exe -arg1 -arg2" /name:"mysrv"
  runassrv add /cmdline:myapp.exe /cmdline:yourapp.exe /name:mysrv
  runassrv add /cmdline:notepad /cmdline:vi.bat /type:interactiveprocess /priority:AboveNormal /name:testsrv /logfile:C:\test.log /loglevel:debugonly /dispname:"My Test Service" /desc:"This is a Test Service"

  runassrv start /name:wuauserv
  runassrv stop /name:wuauserv
  runassrv pause /name:iisadmin
  runassrv control /name:wuauserv /opcode:1

  runassrv listsrv /name:w*
  runassrv listsrv /type:KernelDriver/FileSystemDriver
  runassrv listsrv /starttype:SystemStart/BootStart
  runassrv listsrv /group:pnp_tdi
  runassrv listsrv /pid:1234
  runassrv listgrp
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

顶一下
(1)
100%
踩一下
(0)
0%
------分隔线----------------------------
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 密码: 验证码:
赞助商位置
推荐内容
杂七杂八