KeepAlive

by Heimskringla

Very simple utility to force another application to restart whenever that application is shut down.

The application "KeepAlive" and its source code is in the Public Domain. Means you can do whatever you want with it, except claim copyrights, patents or anything similar regarding this application or its source code or parts thereof.

Created 2009 by Karl Nilsson, heimskringla.com.
Coded in Visual Basic 6.

Usage:

Works with arguments on the commandline.

Provide 3 arguments, separated by slashes (/).
1. Class name
2. Full path to exe-file
3. Timer interval in seconds (max 64)

Syntax: keepalive.exe [Class name] / [Full path to exe-file] / [Timer interval in seconds (max 64)]

Example 1:

Create an empty textfile in the same folder where keepalive.exe is, and name it whatever you want, but with the extension .cmd, e.g. "keepalive.cmd".
Open the textfile you just created and copy this line:
keepalive.exe SciCalc / C:\WINDOWS\system32\calc.exe / 2
and paste into your cmd textfile.
Save and close.
Double-click the .cmd file and see how first the KeepAlive opens and then the calculator.
Now close the calculator, and within a few seconds it will start again.
Now, close KeepAlive and then the calculator. It won't start again.

Example 2:

Create a shortcut, by right-clicking keepalive.exe, selecting Send to, and then Desktop (create shortcut).
Now, make your desktop visible, find the newly created shortcut, right-click on it, and choose Properties.
Select tab Shortcut, and in the Target textbox you should find the full path to the keepalive.exe file.
Copy this line (including the leading space):
SciCalc / C:\WINDOWS\system32\calc.exe / 2
Without altering what is already in that text box, paste the above line after the end of the already existing text.
Click OK to save and close the dialog window.
Now double-click the shortcut on the desktop and see first how KeepAlive opens and then the calculator.
Now close the calculator, and within a few seconds it will start again.
Now, close KeepAlive and then the calculator. It won't start again.
 


Download (includes executable and source code in VB6): keepalive.zip (8kB).

Heimskringla Software is used by Radio Pirata 99.9 FM, Managua, Nicaragua