Home (All Topics) → Technology → Software → AI-Created Software
A small Windows tray app that watches programs and restarts them when they crash, hang or misbehave, so a server, kiosk or background tool keeps running without anyone at the keyboard.

Restart on Crash runs on Windows 8.1, 10 and 11, on the .NET Framework 4.8 that comes with them. Copy RestartOnCrash.exe to any folder and run it. To build it from the source on Windows:
.\build.ps1 -Output "D:\PortableApps\RestartOnCrash\"
build.cmd takes the same arguments where PowerShell scripts are blocked. With the .NET SDK installed it also runs the tests; without it, the C# compiler built into Windows builds the exe.
With nothing set up, the main window opens; after that Restart on Crash starts in the notification area (unless “Start in the notification area” is off in Settings). Click Add, then Select a running application… to copy its path, command line and working folder from the live process, or Select a file…. Then choose:
Programs are matched by their full path, never just the exe name. A Windows service is pointed to its own Recovery options instead.
The toolbar has Add, Edit, Duplicate, Delete, Undo, Redo, Settings, Show log, Pause and More (import and export of the list, the working folder, exit). The list shows each program’s status, last restart and restart count; its columns sort by a click on the heading (a second click reverses), and keep the widths you drag or fit by a double-click on a column’s right edge. The detail pane shows what restarts the selected program, the command it runs, Restart now and its recent events. Right-click a row for Restart now, Resume (after crash-loop protection gave up) and Open file location.
Every change to the list can be undone, Delete included, so it asks no confirmation; the history lasts until Restart on Crash exits. Closing the window keeps monitoring in the notification area; Exit is in the tray menu and under More.
The tray icon shows the overall status: green with an arrow (all fine), dim red with three dots (checking or restarting), red with “!” (needs attention), gray with two bars (paused). Pause and resume all monitoring from the tray menu or the toolbar.
Restart on Crash keeps its files in its working folder: the exe’s own folder when its files are already there or the folder can be written to (a portable copy), else %APPDATA%\RestartOnCrash.--help shows which one.
RestartOnCrash.ini: preferences, window places and column widths. A mistyped hand edit resets only that value.apps.json: the list of programs. Paths inside Restart on Crash’s own folder are stored relative to it, so a copy on a USB drive keeps working when the drive letter changes; environment variables work in paths too.state.json: restart counters, kept apart so a restart never rewrites the list.RestartOnCrash.log: the log, when “Log events to a file” is on.Version 1 kept everything in settings.json; the first start of this version converts it and renames it settings.json.converted.
Every option takes a value; --help lists them.
--working-folder-path FOLDER: the working folder, created if needed. Blank: the default above.--startup TRUE: used by the Windows startup entries; skips the tip about the notification area.--replace-process-id PID: waits up to 10 seconds for that process to exit first; used by “Restart as administrator”.A mistake prints “Error: …” and “Use –help for usage.” and exits with 2. Output goes to the console Restart on Crash was started from, or to a message box when there is none.
| Key | Action |
|---|---|
| Ctrl+N | Add a program. |
| Enter or double-click | Edit the selected program. |
| Ctrl+D | Duplicate the selected program. |
| Del | Delete the selected programs. |
| Space | Turn the selected programs on or off. |
| Ctrl+Z | Undo the last change to the list. |
| Ctrl+Y or Ctrl+Shift+Z | Redo. |
| Ctrl+C | In the log: copy the selected events, or all shown. |
| Ctrl+A | In a text field: select all. Right-click a field for Cut, Copy, Paste and Select all. |
| Esc | Close a window (a dialog without saving). |
apps.damaged-<date and time>.json: it wasn’t valid JSON, often after a hand edit. Restart on Crash starts with an empty list; fix the copy and import it with More > Import applications.--working-folder-path.[window] or [dialogs] in RestartOnCrash.ini.

