Using Srv. Start to Run Any Application as a Windows Service. There are lots of great utilities out there which do essential tasks such as monitoring and reporting that once you have configured them, they just sit in your system tray and do their job without you ever knowing. While this works great for desktop machines, this model is not ideal for server use which, typically, does not have anyone actively logged into it. The solution is to run the application as a Windows Service which runs in the background regardless of whether or not a user is logged in.
This article will show you how to run any application as a background service using the free tool, Srv. Start. Srv. Start Overview.
I wanted to setup some programs to run as Windows Services but found information on the subject to be scattered around everywhere. So this post is basically for. Hi, I am trying to run a application (.exe) as a service on this 2008 r2 server so none has to be logged in for this program to run. I have tried a few. Run as Service is a powerful program that will let you run any application as Windows service, as if it was a native Windows service. With Run as Service you can.
Using SrvStart to Run Any Application as a Windows. to run any application as a Windows Service. program is configured as needed, it can run. How to run Program As Service in Windows 7 FOR FREE. So running the server as service allow you to hide this windows and run server in background and. Application As Service will let. Run program as service. Application as Service is a cutting. benefitting from all the advantages native Windows services. RunAsService is a command line tool that allows you to setup a regular console application to run as a service. in Window's services list. RunAsService.
. 2008/Vista/2003/XP GUI application as a Windows Service. Run any Application as a Windows Service with. to run any Program as a Windows Service. FireDaemon runs any application program or script as a Windows service. Windows and FireDaemon Pro services. run a network monitoring program on Windows. Notice two things here, first instead of saying “sc create” I said “sc config“, that is because we already had a service named “MyProgramName” from our.
Run Program As Service Windows 7
Simply put, Srv. Start allows you to run any application as a Windows Service. While the vast majority of applications are not suited for this type of deployment (i. Notepad, Microsoft Word, etc.), there are lots of utilities which can run seamlessly as a background service. By interfacing with the Windows Service Manager, Srv. Start “interprets” the Operating System commands, such as start (open) and stop (close), and sends them to the target application which doesn’t know the difference.
Much like the Microsoft tool, Srv. Any, Srv. Start was developed for Windows NT but still works on the newest operating systems (we are using Server 2. The different between Microsoft’s Srv. Any and Srv. Start is that Srv. Start is much more configurable. For example, stopping a service controlled by Srv.
Any is essentially the same as killing (think Ctrl+Alt+Del) the respective application where Srv. Start can send a close message to the application so it can shut down gracefully. Configuring an Application to Run as a Windows Service. For our example we are going to use the Lifehacker utility, Belvedere which is a file system watchdog which automates file actions such as moving and renaming when certain events or time limits occur. So when this program is configured as needed, it can run completely in the background as a Windows Service and function exactly the same as if it was running in your system tray. Again, for servers this is ideal because the vast majority of the time, users are not logged in. Before configuring the service, you must first install the target program (obviously) and then configure it as needed.
For the purposes of this article, we are not going to discuss the configuration of Belvedere (it is covered well on their download page). Next we need to copy the three Srv.
Start required files (srvstart. Windows directory so they can be referenced without issue. Finally, we need to create the configuration file which Srv. Start will read to launch the application.
You can read the full details on all the configuration options on Srv. Start’s page, however we are only going to use the ‘startup’ (the only option truly required) command which specifies the program to launch and ‘shutdown_method’ which tells Srv.
Start how to close the program when the respective service is stopped. Our configuration file is saved as “C: Belvedere. Service. ini” and looks like this: [Belvedere]startup=”C: Program Files.
Belvedere. Belvedere. So with the application configuration completed, we use the built in Windows “SC” command to add a new Windows Service. Run the following from the command prompt (note – there is a space after each equal sign, this is required): SC CREATE Belvedere Display. Name= “Belvedere” bin. Path= “srvstart. exe Belvedere - c C: Belvedere. Service. ini” start= auto.
SC DESCRIPTION Belvedere “Automated file manager.”With the service created, it will now appear in the Windows Services list and can be configured like any other Windows Service. Before starting the service, close Belvedere if you have it open. That’s it. If you check your Task Manager, you will both Belvedere. Important Notes. One thing to keep in mind is that when the application is running as a service, it has no interface. This means you cannot see or respond to message boxes and prompts raised by the program. Additionally, you cannot make configuration changes on the fly.
When you need to make changes, you have to do the following: Stop the service the application is running as. Open the application through it’s normal user interface. Make and apply your changes. Close the application running through the normal interface. Start the service.
It is important to keep “gotcha” type of things in mind as you are essentially running an interface application without using the interface. For Belvedere, when the typical interface mode is running, you will see the icon available in the system tray. And when running as a service, you will see no tray icon even though it is running in the background. Conclusion. While we have demonstrated turning an application into a service with a file monitoring utility, this same procedure can be applied to anything from hardware monitors to report generators.
Be creative as this has lots of uses. As mentioned previously, we are using Srv. Start with only the most basic configuration. Although this is probably all you need the majority of the time, it is good to keep in mind that Srv.
Start has many other settings you can use to fine tune how the program runs in service mode. Links. Download Srv. Start by Nick Rozanski. Download Belvedere from Lifehacker.