Automate with mfrc
Build the job once in the UI, save a preset, then run mfrc from a script or prompt. Pass sources and -p|--preset <NAME>; add --dry-run to simulate commit without changing files. mfrc prints each item’s Preview changes (old → new) in the console. Optional --output-file writes the same outcomes as JSON. In the desktop app, Tools → Command Line Builder builds a ready-to-run mfrc line from the current sources and preset.
Watch how
How to do it
- In the UI, build a Filter Chain and Save Preset with a stable name.
- Optional: Tools → Command Line Builder builds a ready-to-run mfrc line from the current sources and preset.
- From a console, run
mfrc <sources> -p "Your Preset" --dry-run. - Read the Preview lines for each planned rename; optionally add
--output-filefor a JSON summary. - When the dry-run looks right, re-run without
--dry-runto commit.
What you see
Example: preset + sources + --dry-run.
Console output shows each item’s Preview changes (nothing written while
DryRun is true).
> mfrc "C:\Music\Blue Train\*.mp3" -p "Audio: Artist - Track - Title" --dry-run
Starting preview with preset 'Audio: Artist - Track - Title' (4 item(s)).
Preview changes for C:\Music\Blue Train\TrackA.mp3:
File Name:
TrackA.mp3 -->
John Coltrane - 01 - Blue Train.mp3
Preview changes for C:\Music\Blue Train\TrackB.mp3:
File Name:
TrackB.mp3 -->
John Coltrane - 02 - Moment's Notice.mp3
Preview changes for C:\Music\Blue Train\TrackC.mp3:
File Name:
TrackC.mp3 -->
John Coltrane - 03 - Locomotion.mp3
Preview changes for C:\Music\Blue Train\TrackD.mp3:
File Name:
TrackD.mp3 -->
John Coltrane - 04 - I'm Old Fashioned.mp3
Finished preview. Changed: 4, Unchanged: 0, Errors: 0.
Starting commit for 4 item(s). FailFast: True. DryRun: True. ConfirmBeforeApply: False. IsUndo: False.
Related Help
FAQ
- What is mfrc?
-
mfrc is Magic File Renamer’s console program: load a saved preset, resolve sources, run Preview, then commit unless
--dry-runis set. It is separate from the desktop UI. - Do I need to build the Filter Chain on the command line?
- No. Save the preset in the UI first. mfrc selects the preset by name. Tools → Command Line Builder can draft the mfrc line for you.
- What does --dry-run do?
- After a clean Preview, mfrc still runs the commit path but skips filesystem writes. Review each planned rename in the console before a real Apply.
- How do I see the proposed file names from mfrc?
-
After Preview, mfrc logs each item’s property changes (for example File Name old --> new). For scripts,
--output-filewrites JSON withoriginalPath,destinationPath, andchanges.