tool
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
- Whole folders at once — pick several files, or paste in a folder, and point it at a target folder. Every file is matched by name, and new files in the release (that DLL you just added) are copied in instead of waiting forever
- Folder groups — a 30-file release shows as one tidy row, like
▸ StarShip v4 (30) Waiting 3/30. Click to expand it, right-click to act on all of them. Works on both the Active and Favorites tabs - Names that make sense — a build folder like
…\StarShipInterface\bin\Debug\net8.0-windowsshows up as StarShipInterface (Debug) on its own, and you can rename any group to whatever you'll recognize - Copy rules — an Options screen with two lists. Never copy skips the junk: temp files, logs,
desktop.ini. Copy only if missing protects config files likeappsettings.jsonand.exe.config— they're copied into a fresh install, but never overwrite the one you've already set up. When a release really does need a new config, right-click and Force copy it, just that once - Open in Explorer — right-click any row or group to jump straight to the master or target location
- Starts the moment you press Watch — the first attempt happens immediately instead of after the first wait
- Remembers your layout — window size and column widths are kept between runs, along with your timer setting
- Opens instantly — even when a saved pair points at a server that's offline
What it does
- Master → Target, always the right direction — your good copy overwrites the locked file, never the other way around
- Watches and pounces — polls on an interval you set and copies the moment the target is no longer held open
- Retries automatically — a locked file doesn't fail the job; it stays in line and gets swapped as soon as the lock clears
- Knows when there's nothing to do — before queuing a file, it compares master and target. If they're already identical, the row says In sync and stays out of the queue, so you never have to guess
- Checks on startup — saved pairs are compared when the app opens, so each row shows In sync or Out of sync right away, and one click queues every out-of-sync file
- Favorites — star the pairs you force every release. One click checks them all, flags the ones that drifted, and sends the stale ones straight to the queue
- History — every swap is logged with the time, file, size, and number of tries, and whether it replaced, created, or was force-copied
- Clear done — sweep finished rows off the active list in one click; favorites and history stay put
- Live status — each row shows Waiting, Locked, Replaced, In sync, Out of sync, Protected, or Skipped, plus a running count of tries so you can see it working
- Adjustable delay — dial the poll interval up or down, even while it's running, so shortening it takes effect right away
- Missing-file detection — flags a master or target that isn't there instead of silently doing nothing
- Select several at once — Ctrl- or Shift-click rows to redo, re-check, favorite, or remove them together
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