RunAsService 1.0.0.0

Published by

RunAsService allows you to set up regular console apps to run as services from the command line.
RunAsService allows you to set up regular console apps to run as services from the command line.

Any services you install using this tool will require that this tool remains on that computer in the same location in order for those services to continue functioning. Therefore before installing any services, you should make sure this tool is somewhere where it can remain permanently. If you do end up moving this tool use the 'fixservices' action to fix the existing services.

RunAsService
-Typing just the name of the tool without specifying any parameters. Or specifying incorrect parameters will bring you to the help screen.

RunAsService install [Name] [Display Name] PathToExecutable
-Name; The name of the service, if none is specified the name will default to the name of the executable. You might choose to give it a different name than the executable to keep some kind of existing convention, make it friendlier or make it easier to use commands like 'net start' and 'net stop'

Display Name; -This is how the service name will be displayed in the windows services list. If no display name is specified it will default to Name, if Name is not specified, it will default to the name of the executable.

Generally, the display name is longer and more descriptive than the name and gives the user a better idea of what the service is and/or does.

PathToExecutable
-The location of the application you want to run as a service. Note, the tool will check if this executable exists if it doesn't find it will not install it.

RunAsService uninstall Name
-The name of the service you would like to uninstall.

RunAsService fixservices
-Use this action when you've moved the RunAsService executable. Services installed using RunAsService require that RunAsService remains on the computer and at the same location if you move it the services will stop working, use this action to fix that.

You can use Windows built-in commands to start and stop your services. For example, you can use net start "My Service" and net stop "My Service" Where "My Service" would be replaced with the name of your service.

 Download