Home » Questions » Computers [ Ask a new question ]

How do I keep a Windows XP service running all the time?

How do I keep a Windows XP service running all the time?

I have a service in Windows XP that is stopping intermittently. It is transferring data from a PLC to a database.

Asked by: Guest | Views: 258
Total answers/comments: 1
bert [Entry]

"The only simple automatic solution I can think of is to add a little .bat script to Programs/Startup that will sleep and periodically issue a ""net start service"" command.
Example, with 60 seconds wait:

@Echo Off
:again
sleep 60
net start myservicename
goto again

Left is to make the batch file run invisibly, so have a look at:

Hidden Start - Run Apps In The Background
Quiet - Command line tool to
silently launch a process.
This article"