Run As Service runassrv.exe 詳細(xì)參數(shù)第1/2頁(yè)
把任何可執(zhí)行文件(包括批處理和角本)當(dāng)作系統(tǒng)服務(wù)運(yùn)行的工具
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
介紹:
■ 將任何可執(zhí)行文件作為系統(tǒng)服務(wù)運(yùn)行。
■ 開(kāi)始主要是為了移植一些linux 的 daemon;也可以用于啟動(dòng)任何應(yīng)用程序和維護(hù)性角本。
■ 安靜地運(yùn)行,除非指定了 Interactive 模式,否則不會(huì)彈出任何窗口。
■ 無(wú)需登陸,系統(tǒng)啟動(dòng)后自動(dòng)運(yùn)行,無(wú)需等待用戶(hù)登陸完畢。
■ 作為附帶的功能,支持啟動(dòng)、停止和刪除任何系統(tǒng)服務(wù)。
■ 完整接管系統(tǒng)服務(wù)管理器的指令(啟動(dòng)、停止等等)。運(yùn)行的程序終止后,自動(dòng)向服務(wù)管理器提交狀態(tài)同時(shí)自身退出,不會(huì)駐留內(nèi)存。
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
1.1.0.628 版新增內(nèi)容:
■ 所有 Action (例如:add / remove 等)無(wú)需再加前綴。
■ 新增 pause / continue 操作。
■ 現(xiàn)在開(kāi)始,一個(gè) runassrv 服務(wù)可以并發(fā)運(yùn)行多個(gè) /cmdline 指定的應(yīng)用。
■ runassrv.exe 本身不需要放入系統(tǒng)搜索路徑中了。
■ 新增 control 操作,向指定的服務(wù)發(fā)送控制碼。
■ 新增 listsrv 操作,列出所有服務(wù)和驅(qū)動(dòng),支持很多過(guò)濾條件。
■ 新增 -logfile 和 -loglevel 選項(xiàng),日志記錄功能。
■ 新增 -unstoppable 系統(tǒng)服務(wù)管理器將拒絕停止一個(gè)以該選項(xiàng)安裝的服務(wù)。
■ 內(nèi)存收縮策略,典型情況下內(nèi)存開(kāi)銷(xiāo)少于 300KB。
■ 解決了在某些系統(tǒng)上 start / stop 命令無(wú)效的問(wèn)題。
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
1.1.2.803 版新增內(nèi)容:
■ 如果指定了多個(gè) /cmdline 參數(shù),那么服務(wù)啟動(dòng)時(shí),用戶(hù)命令將會(huì)按照 /cmdline 的指定順序逐個(gè)執(zhí)行。
■ 每條用戶(hù)命令都將等待上條 /cmdline 命令就緒后才開(kāi)始執(zhí)行,保證有依賴(lài)關(guān)系的命令可以正常運(yùn)行。(參見(jiàn):“關(guān)于執(zhí)行就緒”)
■ 為每條命令設(shè)置默認(rèn)的“當(dāng)前工作目錄”參數(shù)。例如,有命令:“/cmdline:C:\test\app.exe”,在執(zhí)行該命令時(shí),其當(dāng)前工作目錄將被設(shè)置為“C:\test\”,保證應(yīng)用程序可以正常訪(fǎng)問(wèn)配置信息和私有數(shù)據(jù)。
■關(guān)于執(zhí)行就緒■ 對(duì)于命令行程序(包括批處理和角本),執(zhí)行就緒意味著標(biāo)準(zhǔn)輸入輸出設(shè)備已初始化完畢,并且已經(jīng)進(jìn)入主程序入口(main());對(duì)于圖形界面程序,執(zhí)行就緒意味著主窗體注冊(cè)和初始化完畢,程序已經(jīng)在主循環(huán)處等待接受消息。
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
幫助屏幕:
C:\Documents and Settings\Administrator>
#runassrv
===========================================================================
Run As Service Ver 1.1.2.803 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
===========================================================================
相關(guān)文章
雷客圖ASP站長(zhǎng)安全助手1.6 SP1發(fā)布!下載
雷客圖ASP站長(zhǎng)安全助手1.6 SP1發(fā)布!下載...2007-06-06
UltraEdit-32 v13.00a+2 官方簡(jiǎn)體中文版 下載
UltraEdit-32 v13.00a+2 官方簡(jiǎn)體中文版 下載...2007-04-04
Windows中直接運(yùn)行Linux程序andLinux官方下載
andLinux是一個(gè)完整的Ubuntu Linux系統(tǒng),它能夠直接運(yùn)行于Windows 2000/XP/2003和Vista的32位版本上,它由GP2X社區(qū)負(fù)責(zé)維護(hù),而且是永久免費(fèi)的. andLinux基于CoLinux開(kāi)發(fā)的技術(shù),它提供了一個(gè)讓W(xué)indows連接Linux內(nèi)核的接口,雖然這技術(shù)有點(diǎn)像VMware和VPC,但這并不是一個(gè)簡(jiǎn)單的模擬器.2008-02-02
清除網(wǎng)頁(yè)中iframe木馬的利器-淘特ASP木馬掃描器
清除網(wǎng)頁(yè)中iframe木馬的利器-淘特ASP木馬掃描器...2007-08-08
萬(wàn)博企業(yè)網(wǎng)站管理系統(tǒng)V2006多語(yǔ)完整版下載
這篇文章主要給大家介紹了關(guān)于萬(wàn)博企業(yè)網(wǎng)站管理系統(tǒng)V2006多語(yǔ)完整版下載的相關(guān)資料,需要的朋友可以參考下2006-12-12
大型信息網(wǎng) 燈火網(wǎng)--(帶調(diào)試錄象)提供下載了
大型信息網(wǎng) 燈火網(wǎng)--(帶調(diào)試錄象)提供下載了...2007-03-03
ewebeditor 4.8商業(yè)版精簡(jiǎn)通用版本(集成asp版本)提供下載了
ewebeditor 4.8商業(yè)版精簡(jiǎn)通用版本(集成asp版本)提供下載了...2007-08-08
Kmplayer2.9.3.1291 Beta 簡(jiǎn)體中文語(yǔ)言文件+exe 優(yōu)化和組件增強(qiáng)版 下載
Kmplayer2.9.3.1291 Beta 簡(jiǎn)體中文語(yǔ)言文件+exe 優(yōu)化和組件增強(qiáng)版 下載...2007-05-05
[php]實(shí)現(xiàn)像GOOGLE一樣分頁(yè)效果的代碼
[php]實(shí)現(xiàn)像GOOGLE一樣分頁(yè)效果的代碼...2007-05-05

