SoFunction
Updated on 2025-04-09

Tools to run any executable files (including batch processing and scripts) as system services Download

Run As Service
Tools to run any executable files (including batch and angular books) as system services
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
introduce:
■ Run any executable file as a system service.
■ The beginning is mainly to port some Linux daemons; it can also be used to start any application and maintain the cornerbook.
■ Run quietly, no window will pop up unless Interactive mode is specified.
■ No need to log in, the system will run automatically after startup, and there is no need to wait for the user to log in.
As an accompanying feature, it supports starting, stopping and deleting any system services.
■ Instructions that take over the system service manager (start, stop, etc.). After the running program is terminated, it will automatically submit the status to the service manager and exit itself while expelling, and will not reside in memory.
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
Help Screen:
C:\Documents and Settings\Administrator>
#runassrv
=======================================================================
  Run As Service Ver 1.0.0.3 by BaiYang / 2004, 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.
  -listgrp  - List all service load order groups on local system.
  -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 syst
  -starttype - service start type, can be:
                 SystemStart
                 BootStart
                 AutoStart (DEFAULT)
                 DemandStart
                 Disabled
               NOTE: set this option incorrectly may endanger your syst
  -errctl    - service error control policy, can be:
                 ErrorIgnore
                 ErrorNormal (DEFAULT)
                 ErrorSevere
                 ErrorCritical
               NOTE: set this option incorrectly may endanger your syst
  -group     - specify service load order group
                 DEFAULT: none
  -depen     - names of services or load ordering groups that the syste
               must start before this service, delimited by '/'
                 DEFAULT: none
  -user      - specifies the name of the account under which the servic
               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
=======================================================================
Examples:
  runassrv /add /cmdline:"c:\tools\ -arg1 -arg2" /name:"mysrv" /dispname:"example service"
  runassrv /listgrp
  runassrv /remove /name:"mysrv"
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
Simple Chinese help:
C:\Documents and Settings\Administrator>
#runassrv
=======================================================================
  Run As Service Ver 1.0.0.3 by BaiYang / 2004, Freeware
=======================================================================
Run any executable program as a system service
Usage: runassrv <action> <option>
=======================================================================
action:
-add     -Add a new service.
-remove  - Delete a service.
-start   - Start a service.
-stop    -Stop a service.
-listgrp  -list the priority order of all service startup groups in the current system.
-h       - This help screen.
=======================================================================
Options:
-cmdline   - When the service starts, specify which program you really want to run.
-name    -Specify the system service name (for system operations such as net start ).
-dispname  -Specify the service display name (the name seen in the service manager) that the user will see.
-desc     -Specify service description (service description information seen in the service manager)
Default: None
-type     - Specify the service type, which can be the following:
FileSystemDriver  : The file system and driver will be loaded before the kernel is loaded. Note
Services of this level can hardly use any system API.
KernelDriver                                                            �
Level services can only use restricted APIs.
OwnProcess: Individual process service, standard service, ready in Win32 subsystem
After startup, default.
ShareProcess: Shared process services, that is, several services share the same process, many
Services that rely on svchost use this type.
InteractiveProcess: Interactive service, the service can interact with users, except this class
Except for the type, all types of services cannot be user-friendly.
The interface to see.
Note: This option incorrectly sets this option may make the system unstable and even fail to start! if
Don’t know what you are doing, please don’t try the first two items.
-starttype - Service startup type, including:
SystemStart: System-level startup, start after kernel initialization.
BootStart: Started by the system loader (before kernel initialization).
AutoStart: Automatically start, start after Win32 subsystem is initialized, default.
DemandStart: Manual.
Disabled    : Disabled.
Note: This option incorrectly sets this option may make the system unstable and even fail to start! if
Don’t know what you are doing, please don’t try the first two items.
-errctl    -Specify the error handling policy when a service error occurs, which can be:
ErrorIgnore: Ignore errors, do not rescue the service, the system continues to run
ErrorNormal: Record the system log, and a dialog box pops up to prompt the user to silently
recognize. (default)
ErrorSevere  : Log a log and a prompt box pops up, if the current system is already running
The configuration that was started correctly for the last time will be ignored, otherwise it will be automatically
Restart until the last correct configuration.
ErrorCritical: Same as above, but if you restart until the last correct configuration, it will still be started
If the service fails, the blue screen will be displayed.
Note: This option incorrectly sets this option may make the system unstable and even fail to start! if
Don’t know what you are doing, please don’t try the last two items.
-group   - Specify the startup priority group that the service belongs to. The priority group can be listed in order through listgrp.
Default: None
-depen    -Specify the service to which this service depends. The service specified here must be correct before the service is started.
start up. Multiple services are divided by "/". Here you need to specify the system service name, not the user
The name I saw.
Default: None
-user    -Specify the user identity, that is, which user account is used for this service to run
Default: LocalSystem (local system, highest permission), interactive services must use this
account number.
-pass     -Specify user password
Default: None (LocalSystem)
-priority  -cmdline  parameter specifies the program's running priority, which can be (this one needs no explanation):
                 Idle
                 BelowNormal
                 Normal (DEFAULT)
                 AboveNormal
                 High
                 RealTime
=======================================================================
example:
  runassrv /add /cmdline:"c:\tools\ -arg1 -arg2" /name:"mysrv" /dispname:"example service"
  runassrv /listgrp
  runassrv /remove /name:"mysrv"
=======================================================================
About command and parameter separator:
All parameters are prefixed with "-" or "/"; the value parameter needs to be assigned with ":" or "=" as
Assignment operators, such as: -name="mysrv"; /name:"mysrv"; -name:"mysrv" and other combinations
It is legal.
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
Copyright: Free software; the author shall not assume any responsibility. You can use it for any purpose as long as you don't do bad things.
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
Contact the author: /forum or asbai@
If you have any questions, try to contact the forum or email. However, if you like to play Star and are a rookie with the same speed as me (no more than 100), please add my MSN ^_^
Local download