[SOLVED] Is there any app for win10 to shutdown system if a software stop working (Crashes)?

Silicon Power

Reputable
Apr 11, 2017
41
0
4,530
0
Hey guys. I need to know Is there is any app for win10 to shutdown system if a software stop working (Crashes)? I use InTouch security app to secure my server but I'm scared if this app crashes stop working somehow! So I need another app to shutdown PC if InTouch app crashes
 

gardenman

Admirable
Moderator
8 Tools to Automatically Restart a Crashed or Closed Application
https://www.raymond.cc/blog/keep-application-running-by-automatically-rerun-when-closed/

Alternatively, this could be done with some type of script. You can probably use either AutoHotKey or PowerShell. I'm not familiar with PowerShell scripting but I have done a little AutoHotKey scripting.

Pick one (or something else) and begin designing your script. Basically you need it to see if a program is running and if it is, do nothing. If the program is not running, call shutdown.exe.

Here's a few good examples:

See the one at the bottom of the page here:
https://autohotkey.com/board/topic/33659-if-program-is-not-running-then-start/
Also see the "Loop" part for the first one listed on the page.

And here are the arguments/parameters for shutdown.exe
https://superuser.com/questions/1003270/what-are-the-arguments-for-shutdown-exe-in-windows-task-scheduler
 
Reactions: Silicon Power

gardenman

Admirable
Moderator
8 Tools to Automatically Restart a Crashed or Closed Application
https://www.raymond.cc/blog/keep-application-running-by-automatically-rerun-when-closed/

Alternatively, this could be done with some type of script. You can probably use either AutoHotKey or PowerShell. I'm not familiar with PowerShell scripting but I have done a little AutoHotKey scripting.

Pick one (or something else) and begin designing your script. Basically you need it to see if a program is running and if it is, do nothing. If the program is not running, call shutdown.exe.

Here's a few good examples:

See the one at the bottom of the page here:
https://autohotkey.com/board/topic/33659-if-program-is-not-running-then-start/
Also see the "Loop" part for the first one listed on the page.

And here are the arguments/parameters for shutdown.exe
https://superuser.com/questions/1003270/what-are-the-arguments-for-shutdown-exe-in-windows-task-scheduler
 
Reactions: Silicon Power

ASK THE COMMUNITY