I am very new to writing batch files. I have program that is running constantly at work. The program keeps freezing up throughout the day. There are several of these kiosks that have this problem all at different various locations across the province. They run on touchscreen and the computer that runs and keyboard are locked up so it is a bit of trouble for them to get to the computer and keyboard to reboot it.
I was wondering if anyone could help me write a batch file that will check every 15 minutes to see if the program is frozen. If the program is active I would like the batch file to keep looping every 15 minutes. If the program is frozen or not responding I would like the batch file to reboot the computer. Any help that can be given would be much appreciated. Thank you in advance.
Batch to reboot if program stops responding
Moderator: DosItHelp
Re: Batch to reboot if program stops responding
It might be enough to simply kill and restart the program every hour.
Edit With a batch file I mean.
Do you think that would work?
Edit With a batch file I mean.
Do you think that would work?
-
- Posts: 22
- Joined: 18 Oct 2013 05:28
Re: Batch to reboot if program stops responding
Matticus117 wrote:I am very new to writing batch files. I have program that is running constantly at work. The program keeps freezing up throughout the day. There are several of these kiosks that have this problem all at different various locations across the province. They run on touchscreen and the computer that runs and keyboard are locked up so it is a bit of trouble for them to get to the computer and keyboard to reboot it.
I was wondering if anyone could help me write a batch file that will check every 15 minutes to see if the program is frozen. If the program is active I would like the batch file to keep looping every 15 minutes. If the program is frozen or not responding I would like the batch file to reboot the computer. Any help that can be given would be much appreciated. Thank you in advance.
Hmm, it is possible but it will take time to think of a way.
You could create a separate batch file that searches a specific directory for the batch file that you want to run, than the batch file that checks the directory can be on a timer. So every 15mins it will open that batch file you want again. And it will keep going on a cycle.
I will work on it
-
- Posts: 3
- Joined: 19 Oct 2013 09:24
Re: Batch to reboot if program stops responding
foxidrive wrote:It might be enough to simply kill and restart the program every hour.
Edit With a batch file I mean.
Do you think that would work?
I was thinking about that originally. It is possible but the powers that be want the computer to reboot.
-
- Posts: 3
- Joined: 19 Oct 2013 09:24
Re: Batch to reboot if program stops responding
Batch Artist wrote:Matticus117 wrote:I am very new to writing batch files. I have program that is running constantly at work. The program keeps freezing up throughout the day. There are several of these kiosks that have this problem all at different various locations across the province. They run on touchscreen and the computer that runs and keyboard are locked up so it is a bit of trouble for them to get to the computer and keyboard to reboot it.
I was wondering if anyone could help me write a batch file that will check every 15 minutes to see if the program is frozen. If the program is active I would like the batch file to keep looping every 15 minutes. If the program is frozen or not responding I would like the batch file to reboot the computer. Any help that can be given would be much appreciated. Thank you in advance.
Hmm, it is possible but it will take time to think of a way.
You could create a separate batch file that searches a specific directory for the batch file that you want to run, than the batch file that checks the directory can be on a timer. So every 15mins it will open that batch file you want again. And it will keep going on a cycle.
I will work on it
Thank you. I still very new to this stuff so any help would be great.