Run as Service runassrv.exe detailed parameters 1th/2 page _ Common Tools

Source: Internet
Author: User
Run as Service

A tool that runs any executable file (including batch and corner) as a system service

≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
Introduced:

Run any executable file as a system service.
It started primarily to migrate some Linux daemon, or it could be used to start any application and Maintenance corner book.
Run quietly, unless you specify Interactive mode, no windows will pop up.
Without landing, the system automatically runs after startup without waiting for the user to log in.
As an incidental feature, it supports starting, stopping, and removing any system services.
Complete takeover of System Service Manager directives (start, stop, etc.). When a running program terminates, it automatically submits the state to the service manager and exits itself, leaving no memory resident.

≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
1.1.0.628 version of the new content:

All Action (e.g., add/remove, etc.) need not be prefixed.
New pause/continue operation.
Starting now, a RUNASSRV service can run multiple/cmdline-specified applications concurrently.
The runassrv.exe itself does not need to be placed in the system search path.
New control operation to send the code to the specified service.
New LISTSRV operations, listing all services and drivers, support many filter conditions.
New-logfile and-loglevel options, logging feature.
New-unstoppable System Services Manager will refuse to stop a service that is installed with this option.
A memory shrink policy that typically has less than 300KB of memory overhead.
Resolves a problem where the start/stop command is not valid on some systems.

≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
1.1.2.803 version of the new content:

If multiple/cmdline parameters are specified, the user commands are executed one at a time in the specified order of/cmdline when the service is started.
Each user command waits until the previous/cmdline command is ready to be executed, ensuring that the dependent commands work correctly. (see: "About execution Ready")
Set the default current working directory parameter for each command. For example, there is a command: "/cmdline:c:\test\app.exe", when the command is executed, its current working directory is set to "C:\test\", guaranteeing that the application has normal access to configuration information and private data.

About execution ready for command-line programs, including batch and corner copies, executing well means that the standard input has been initialized and has entered the main program portal (main ()), and for graphical interface programs, performing well means that the main form is registered and initialized. The program has waited for the message to be accepted at the main loop.

≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
Help screen:

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 the local system
Listgrp-list all service load order groups on the 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 is:
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 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 for your want to run, can is:
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 is:
Debugonly (Most Detail)
Info
Warning
Error (DEFAULT)
FatalError
Disabled (Close Logging Output)
===========================================================================
Special options with "Listsrv":
-name-list Service Name "match" wildcard pattern
DEFAULT: *
-dispname-service Display Name ' s wildcard pattern.
DEFAULT: *
-pid-service belong to specified process.
Default:any
-type-specify service types to is match, delimite by "/".
Default:any
-starttype-specify service Starttypes to is match, delimite by "/".
Default:any
-group-service belong to the load order group
Default:any
-state-service ' s, can be:
Active
Inactive
Default:any
===========================================================================
Current 1/2 page 12 Next read the full text

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.