How does a Windows service send an application at a standard interval?

The consultant configures the Windows service to run the application. The application should run every 15 minutes. The application does not work at all, and the service works fine.

I am not familiar with how the application will work in the standard interval when launched as a service.

The service uses the SRVANY.EXE tool.

+2
windows windows-services srvany
source share
4 answers

Any β€œconsultant” that configures the service to start using SRVANY.EXE must be started. SRVANY - an unsuccessful hack that should have been fired ten years ago; It should never be used in a production environment .

If the sole purpose of the service is to run the application on a schedule, then it should not exist at all. Launch the application as a scheduled task. If it has other functions, rewrite it as a real service. If it's well written, it should be a fairly simple conversion.

+6
source share

Your application has many potential problems.

SRVANY.EXE turns any application into a Windows service. If this application requests user input, it will freeze. You want to confirm that an application running as a service is no more than launching another application.

You can also start the starter application manually, outside of the Windows service. If it still does not work, as it should know that it is not related to starting the service.

+2
source share

To add to the other answers: see KB137890 about what SRVANY.EXE really does and how to find out which application it is running.

It seems to me that you will be better (if possible) to set up a scheduled task that will run each application every 15 minutes if you can.

+1
source share

I'm not sure if this is correct, but I believe that one way to launch the application is to simply have the stream inside OnStart and configure it to start the application on invert in 15 minutes.

0
source share

All Articles