Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Is there a way to automagically determine if a program is running and close it at scheduled time, say 3 am every day?
Maybe use task scheduler to close said application? if this is possible any direction would be appreciated.

Vista or Win7

share|improve this question
up vote 10 down vote accepted

Many ways to go about doing this. A simple solution would be to simply use Task Scheduler to run a batch script like this at 3 am every day:

taskkill /f /im programname.exe

save as something like closeprograms.bat and substitute programname.exe with the name of the executable you wish to kill. Set Task Scheduler up to run this batch file whenever you want.

share|improve this answer

To schedule a program from the Windows command line use this command:

AT hours:minutes /every:date command

So if you want to schedule something for 3:00 AM every day.

AT 03:00 /evry:M,T,W,Th,F,S,Su "command"

For more help check AT /?, CMD /? and

TASKLIST list the applications that are running(type TASKLIST /? for help), but I don't know of a way to combine this two commands to get the result you want or if there is other way to do it, check the site above and google for batch files and VBScript(I don't really use windows so I never bother learning to much).

share|improve this answer

AT 07:21AM /every:M,T,W,Th,F,S,Su taskkill /f /im PROGRAM.EXE

You can get the program name by going into task manager and clicking the "Processes" tab.

share|improve this answer

System Scheduler seems to match your needs. From the website:

System Scheduler is an excellent tool to schedule unattended running of applications, batch files, scripts and much more.

For anyone used to using MS Windows own Task Scheduler, or the older AT or WinAT commands, System Scheduler is an ideal and easy to use replacement, with more flexibility and features. System Scheduler runs totally independently of the MS Windows Task Scheduler and has no dependencies on it.

Also, you can schedule popup reminders so you'll never forget those important appointments and things to do. Reminders, tasks and other events can be set to run once or every minute, hour, day, week, month or year and several variations on these. Popup Reminders can be snoozed as required.

System Scheduler not only allows you to launch programs at scheduled times but also to send keypresses and mouseclicks to those programs. This allows you to not only schedule programs to run overnight or at the weekend but also get those programs to do useful things while unattended. A really powerful feature.

Finally, the Free vesion of System Scheduler also includes a Window Watcher feature. The program will check for the existence of a particular window and send keypresses or send the window a close signal to terminate running applications. Useful for triggering actions or handling error messages while you are away.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.