Process Sniper

← All AI-created software

This is AI-generated (aka vibe-coded) software. It is specific to my needs and my system and may not work for you or yours. Support is limited, but if you report a bug I'll certainly look into it. The code is provided in the zip file for you to review should you choose.
⬇️ Download Process Sniper.zip923.4 KBLast Updated: November 27, 2026Windows

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.

The stats and logs window of Process Sniper, with a week of sample terminations
On this page

Features

  • Ends blacklisted programs within a moment of starting, with their child processes; Windows’ own programs are never ended.
  • Blacklist rules by name or full path, with * and ? wildcards and comments, in a text file you edit in Notepad.
  • A stats and logs window: terminations per program beside a log of each one, with its path, the rule that matched and what started it.
  • Adds a running program to the blacklist from a list, by name or by path.
  • A yellow dot on the tray icon after a program is ended, until you clear it.
  • Pauses monitoring, or allows one program for a while, from the tray menu or the log.
  • One notification for a program that keeps coming back, with how often it was ended.
  • Applies a saved change to the settings or the blacklist at once, without restarting.

Usage

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 tray icon and menu

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:

  • View stats and logs, Clear the alert (the log stays as it is) and Clear stats and logs (asks first).
  • Edit settings and Edit blacklist: open the file in Notepad. What you save applies within a second; a changed blacklist also ends the programs it now matches that are already running.
  • Add a running program to the blacklist (see below).
  • Pause monitoring for 5 minutes, 15 minutes, 1 hour or indefinitely, and Resume monitoring. A pause lasts through a restart. When it ends, programs on the blacklist that started meanwhile are ended at once.
  • Allow a program for a while: pick one of the programs ended most recently, for 15 minutes or 1 hour, or Block … again to end an allowance early. A notification says when an allowance runs out.
  • Run at startup: starts Process Sniper when you sign in, with the same working folder.
  • About Process Sniper (its version and links to its page) and Exit.

The stats and logs window

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).

Adding a running program to the blacklist

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.

The blacklist

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.

Settings

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.

Command line

"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.

Keyboard shortcuts

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

Troubleshooting

  • A program shows its window for a moment before it is ended. Windows reports programs starting only to administrators; otherwise Process Sniper looks for new programs four times a second. Run it as administrator to catch them as they start.
  • A program isn’t ended. It may be allowed for a while (the tooltip says so) or be one of Windows’ own. A rule with a backslash matches only that folder. A program running as administrator can be ended only if Process Sniper runs as administrator too; the log shows “Failed (attempt n)”.
  • A saved change doesn’t apply. Check that you saved the file in the working folder. On a network drive Windows can miss a save; the change then applies within the hour, or at the next start.
  • “history.json was damaged”. It was kept as history.damaged-<date and time>.json, and a new history started.
  • “… isn’t Process Sniper’s history” or “Couldn’t open history.json”. The file was left alone and nothing is saved this session. Close what has it open, or move it aside, and start Process Sniper again.
  • “can’t write to its folder”. Move Process Sniper.exe, or use --working-folder-path.
  • It doesn’t start when you sign in after an update from ProcessSniper.exe. Run at startup still names the old file: turn it off and on again in the tray menu, and delete ProcessSniper.exe.
  • The build says “Cannot find the C# compiler”. It needs .NET Framework 4 (64-bit), part of Windows 8 and later.

Limitations

  • Windows only. Programs are caught as they start only when it runs as administrator, otherwise within about a quarter of a second, and a program may run for a moment before it is ended.
  • A # or // after a space in a path starts a comment, so C:\My #1 Tools\x.exe can’t be a rule.
  • Allowing works by program name, wherever the program runs from.
  • The windows follow Windows’ display scaling when they open; moved to a monitor with other scaling, they aren’t rescaled.

Version 1.0.0, updated 2026-11-16. infolific.com: https://infolific.com/technology/software-worth-using/ai-created/system-utilities/processsniper/

⬇️ Download Process Sniper.zip923.4 KBLast Updated: November 27, 2026Windows

← All AI-created software