Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a program for Windows XP, let's call it X, that needs to run 24/7. The computer's always on. Every day the program X hangs up, maybe twice a day. And it uses too much RAM, so I need to restart it manually. And it all happens on 10 computers every day.

Is there some way to make a script or an executable file to start the program, and reopen it again, and I could just change the time? For example, from 6h to 12h?

share|improve this question
Purely anecdotal, but a professor of mine sold that "You have to restart this program every x hours" as a feature back when he just couldn't fix the program itself. Anyway, is there a way you could tell us what exactly that program is so we can maybe try to fix the actual error instead of constructing a workaround? – slhck Jul 26 '12 at 10:21
There are diffrent programmes, they change every month. The script should have the ability to add the patch manualy to programme... – Johnny Jul 26 '12 at 10:29

If you can't fix the issue with that application, thus preventing it from hanging up, you can called it using the Task Scheduler. When an application is started by the task scheduler, it can stop it latter on.

Task Scheduler gives you complete control of the lifetime of your App:

  1. Open Scheduled Tasks:

    Click Start -> All Programs -> Accessories -> System Tools -> Scheduled Tasks.

  2. Double-click Add Scheduled Task to start the Scheduled Task Wizard.

  3. Setup and create your task.

  4. After created, right click over it and select "Properties".

  5. Select the second tab "schedule" and setup the repeat options.

  6. Select the third tab "Settings" and setup the duration for it.

You can refer to How To Schedule Tasks in Windows XP for further instructions.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .