Skip to content

Jukari2003/Mass-File-Refactor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alt text

Mass File Refactor (MFR)

Short repository description:
A safe, GUI-based PowerShell tool for bulk file and folder refactoring, with optional previewed content modifications and full undo support.


Overview

Mass File Refactor (MFR) is a Windows GUI application written in PowerShell that provides a controlled and reversible way to perform large-scale file and folder refactoring.

This project was formerly known as “Mass File Renamer” and has since expanded beyond naming operations to include a broader refactoring workflow, while preserving a strict preview-first, opt-in execution model.

No changes are ever made automatically — every operation is previewed and must be approved before execution.


Features

File & Folder Refactoring

  • Recursive directory processing
  • Rename folders
  • Rename files
  • Rename file extensions
  • Automatic title formatting
  • Replace character(s) or strings
  • Append character(s):
    • At the beginning
    • At the end
    • Before specific character(s)
    • After specific character(s)
  • Replace character(s):
    • At the start
    • At the end
  • Delete character(s):
    • Before specific character(s)
    • After specific character(s)
  • Insert character(s) at a specific position
  • Increment numbers
  • Pad numbers (e.g. 001, 002)
  • Remove non-Latin / Unicode characters
  • Convert names to lower case
  • Convert names to upper case
  • Add spaces to CamelCase file names

Optional File Content Modification

(Disabled by default and only applied when explicitly selected)

  • Search and replace text inside file contents
  • Filter by file type / extension
  • File size limits to prevent unintended large edits
  • Encoding control (Auto or explicit)
  • Full preview of content changes before execution
  • Patch-based undo support with validation

Safety & Reliability

MFR is designed to be conservative and predictable:

  • Preview-first workflow
  • No implicit actions
  • Undo support for:
    • File and folder refactoring
    • File content modifications
  • Case-safe rename handling on Windows
  • Validation and integrity checks for content undo operations

If something does not look correct in the preview, you can exit without changing a single file.


Installation

  1. Download Mass-File-Refactor.zip from GitHub
    • Click Code (top-right)
    • Select Download ZIP
  2. Extract the files to a location of your choice
  3. Right-click MFR.ps1 and select Edit
    (This opens the script in PowerShell ISE)
  4. Click the green Play button ▶ in PowerShell ISE
  5. The GUI will launch and is ready to use

Note: This tool is intended for Windows systems with PowerShell ISE available.


Usage Overview

  1. Select a target directory
  2. Choose the type of refactor operation(s)
  3. Configure options (and content options if desired)
  4. Review the preview output
  5. Execute changes only if the preview is correct
  6. Use Undo if you need to revert

Why MFR?

Manual refactoring of large file sets is slow, error-prone, and risky.
Uncontrolled bulk scripts are fast — but dangerous.

Mass File Refactor (MFR) provides automation with visibility and reversibility, keeping you in control at every step.

About

Quickly Rename Thousands of Files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors