Restart a Windows Application automatically if it crashes / shutsdown ?

Status
Not open for further replies.
This is really easy to do.

In a batch file type

net restart <servicename>

How to get the service name, In services.msc, go to properties of the service you want to restart and check the service name. This generally doesnt have spaces. So do not confuse it with the display name.

Set to run this batch file at the desired frequency and you are done.
 
running terminal services on computer with access t0 public network is a security risk that one should avoid. Just sayin':angelic:

on the other hand setup the home router to pass through 3389 port to the computer and then just use microsoft remote desktop on the router's public ip.
 
running terminal services on computer with access t0 public network is a security risk that one should avoid. Just sayin':angelic:
Well there will always be an security risk in running anything on the netz these days. We just can ensure that our machines are as boarded up as we can possibly board 'em up. :)
 
I am also running an AutoIT script (in form of exe) on the laptop
You could write a script that monitors your app with ProcessWaitClose in a loop?... and simply restart windows itself with Shutdown function ( i.e., presuming you have your app link in startup ).
-
SKAN
 
running terminal services on computer with access t0 public network is a security risk that one should avoid. Just sayin':angelic:

on the other hand setup the home router to pass through 3389 port to the computer and then just use microsoft remote desktop on the router's public ip.

Firstly, RDP is not so bad as its made out to be. However, it would be prudent to change the public port to something other than 3389.
 
Status
Not open for further replies.