Home (All Topics) → Technology → Software → AI-Created Software
A Windows tray app that ends any program on your blacklist, with the programs it started, as soon as it starts, and keeps a log of what it ended. It needs nothing but Windows: it is built with the C# compiler that comes with Windows.

* and ? wildcards and comments, in a text file you edit in Notepad.
You don’t need Visual Studio or the .NET SDK. Put the files in a folder of their own, then:
build.bat makes Process Sniper.exe with Windows' own C# compiler (.NET Framework 4)
Process Sniper.exe starts it in the tray; the first run creates process-sniper.ini and blacklist.txt
Keep the four process-sniper*.ico files beside Process Sniper.exe: they are the tray icons. To keep the settings and history elsewhere, start it with launch.bat, which passes --working-folder-path "c:\workingfolder" (edit it for another folder) and leaves the app in the tray.appicon.ico is there for PortableApps.
The icon is a red circle with a slash while monitoring and gray while paused. A yellow dot on it means programs have been ended since you last cleared the alert; the tooltip says how many, and which program is allowed and until when. Double-click it to open the stats and logs window.
A notification says when a program is ended. If it starts again, the next one waits 10 seconds and then says how often it was ended in the last minute (“calc was ended 12 times in the last minute”), or lists several programs together. Clicking the notification for one program asks, then allows it for 15 minutes.
Right-click it for:
Terminations per program over the stats’ retention on the left; each termination and failed attempt over the log’s retention on the right, newest first, with the rule that matched, the program’s path, and in Started by the program that started it (blank when Windows won’t say, and in entries from before it was logged). Click a heading to sort by it, again to reverse. The columns fit their contents when the window opens; a column you drag keeps its width, and a double-click on its right edge fits it to its heading and widest entry and keeps that width. The window reopens where you closed it, with the same size, divider, widths and sort. It refreshes by itself after each termination; the status bar shows the state and counts, with failed attempts in red (right-click a message to copy it), and ends with infolific.com, a link to Process Sniper’s page. About (or F1) shows the version, with links to the app’s page and to more free apps.
Running as administrator, the windows’ titles start with “Administrator:” and the status bar shows ⛨ Administrator in red, since the programs it opens (Notepad, Explorer) have those rights too. Click it to restart Process Sniper without them; it then finds new programs by checking four times a second.
Right-click a row for Allow … for 15 minutes or for 1 hour, and in the log also Remove … from the blacklist (asks first; removes every line with that rule and keeps your comments), Copy the path and Open the folder (in Explorer, with the program selected).
The window lists the programs running now, one row per program and folder, with how many copies run; type in Filter to narrow it. Block by name (or a double-click) ends the program wherever it runs from; Block by path only from that folder. Each asks, adds the rule at the end of blacklist.txt and ends the running copies, unless monitoring is paused.
blacklist.txt holds one rule per line, matched without regard to case. A rule without a backslash is a program name, with or without .exe; one with a backslash is a full path.* stands for any characters, ? for one. A comment starts with # or // at the start of a line or after a space, so C:\Tools\C#\ is still a path.
# A name: ends the program wherever it runs from
notepad.exe
# A full path: only from this folder
C:\Temp\AnnoyingUpdater\update.exe
background_task_v*.exe
telemetry.exe // Stops daily telemetry uploads
A program’s child processes, and theirs, are ended with it; only those started after it, since Windows reuses process numbers. Windows’ own programs (System, Registry, Memory Compression, smss, csrss, wininit, winlogon, services, lsass, lsaiso, svchost, dwm, fontdrvhost, explorer, sihost, ctfmon, conhost) and Process Sniper itself are never ended, even by *. A name with * or ? also skips programs in the Windows folder, so s* can’t end C:\Windows\System32\sort.exe; a name without wildcards, or a path, still ends them. A program that can’t be ended is tried five times, and each try is logged.
process-sniper.ini, opened by Edit settings. A value that is missing, not a number or out of range falls back to its default.
| Section | Key | Default | What it does |
|---|---|---|---|
[monitoring] |
scan_interval_seconds |
60 |
Seconds between full checks of every program, in case one was missed, 1 to 3600. |
[monitoring] |
show_notifications |
true |
A notification each time a program is ended. |
[retention] |
log_days |
7 |
Days each termination stays in the log, 1 to 3650. |
[retention] |
stats_days |
30 |
Days the daily counts behind the totals are kept, 1 to 3650. |
The app also writes [alert], [pause], [allow] and [dialogs] (the windows’ places, columns and sorts), changing only those lines, so your comments and edits stay.
The working folder (the folder of Process Sniper.exe unless you name another) holds the settings, blacklist.txt, history.json (the log and the daily counts) and tmp/. On its first run, Process Sniper takes the values and history of an earlier version from config.txt, logs.txt and stats.txt, and leaves those files as they were.
"Process Sniper.exe" [--working-folder-path FOLDER]
--working-folder-path FOLDER (or --working-folder-path=FOLDER): where the settings, the blacklist and the history are kept, created if needed. Blank: the folder of Process Sniper.exe.--help (or -h): shows the options.It has no console, so the help and any mistake show in a message box; a mistake exits with status 2.
In the stats and logs window and the window for adding a running program:
| Key | Action |
|---|---|
| F5 | Refresh |
| F1 | About Process Sniper (stats and logs window) |
| Esc | Close the window |
history.damaged-<date and time>.json, and a new history started.Process Sniper.exe, or use --working-folder-path.ProcessSniper.exe. Run at startup still names the old file: turn it off and on again in the tray menu, and delete ProcessSniper.exe.
# or // after a space in a path starts a comment, so C:\My #1 Tools\x.exe can’t be a rule.Version 1.0.0, updated 2026-11-16. infolific.com: https://infolific.com/technology/software-worth-using/ai-created/system-utilities/processsniper/

