BohemianBuddha

tool

File Forcer

version1.2
languageC# / .NET (WinForms)
updated2026-12-02
downloadget it →

File Forcer

File Forcer keeps a file forced to the version you want. You give it a master — your known-good copy — and a target — the file that some other program keeps holding open. It watches the target, and the moment the lock releases, it overwrites it with the master. No babysitting, no timing it yourself, no fighting the "file in use" error. It just waits for the door to open and slips the right file in.

Why it exists

Some files get held hostage. A report template a running app has open, a config another process won't let go of, a shared file locked just long enough to be annoying — you try to replace it, Windows says no, and you're left retrying by hand until the other program finally lets go. File Forcer turns that "wait, retry, wait, retry" into something you set once and forget. It does the retrying for you and pounces the instant the file is free.

And some of those files come back every release. The same master, the same target, swapped again next week. Version 1.1 was built for that: it remembers your regular pairs, tells you which ones have drifted, and stops you from re-forcing a file that's already right.

Version 1.2 is for the bigger version of the same chore. A release is rarely one file — it's an exe and a handful of DLLs, sitting in a share that someone always has open. Now you point File Forcer at the whole build folder, and it handles the lot.

New in 1.2

What it does

Under the hood

Every tick, File Forcer walks its list and tries the copy for anything still waiting. The trick is that a locked file doesn't throw when you check whether it exists — it throws when you actually try to write it. So rather than pre-checking the lock, File Forcer simply attempts the copy and treats the "in use" exception as not yet rather than failed: the row flips to Locked, the try counter ticks up, and it comes back around next poll. When the copy finally succeeds, the row goes Replaced, the swap is written to History, and it drops out of the rotation. When nothing's left waiting, it stops itself.

The "same or not?" check is cheap first, exact second. If the two files are different sizes, they're different — done, no reading required. If the sizes match, it reads both and compares SHA-256 fingerprints, which catches a changed file even when the size and timestamp look identical. It opens files in shared read mode, so it can usually still check a target another program has open.

Anything that touches the disk to look — the startup check, comparisons, reading sizes and dates, finding a folder to open in Explorer — runs in the background. A network share that's slow or offline can make a row sit on Checking… a little longer, but it can't freeze the window. The copy loop itself is still a single timer — no file-system watchers to leak, nothing to clean up.

Folder groups are just a view. The real list is still one pair per file, so watching, retrying, and history work exactly as before; files that share a master folder and a target folder are simply folded under one header when they're shown. The copy rules are checked twice — when a file is queued, and again right before it's copied — so a config that appears in the target mid-watch is still protected.

Your active list, favorites, history, group names, copy rules, and window layout are saved as small JSON files in your AppData folder, so everything is right where you left it next time you open it.

Get it

Built for Windows, no installer.

← back to tools