Skip to content

Windows batch script that automatically renames files in-place: replaces spaces with hyphens, converts Polish characters to ASCII, removes other special characters, converts filenames to lowercase, preserves extensions, and skips the script itself for safe, clean filenames.

License

Notifications You must be signed in to change notification settings

ezMaverick/polish-file-name-normalizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Polish File Name Normalizer

A simple Windows batch script that automatically renames files in-place: replaces spaces with hyphens, converts Polish characters to ASCII, removes other special characters, converts filenames to lowercase, preserves extensions, and skips the script itself for safe, clean filenames.

Features

  • Replaces spaces with hyphens (-)
  • Converts Polish characters (ą, ć, ę, ł, ń, ó, ś, ź, ż) to ASCII
  • Converts filenames to lowercase
  • Removes all other special characters (keeps letters, numbers, hyphens, and dots)
  • Preserves file extensions
  • Skips the batch script itself to avoid renaming itself
  • Not recursive - only renames files in the current folder (subfolders are ignored)

Usage

  1. Download or clone this repository.
  2. Place rename_files.bat in the folder containing the files you want to rename.
  3. Double-click the .bat file to run it.
  4. All files in the folder will be renamed automatically.
  5. The script will rename only the files in that folder (subfolders remain untouched).

Example

Before running the script:

Świąteczny plik 2025!.txt
Mój (dokument).pdf

After running the script:

swiateczny-plik-2025.txt
moj-dokument.pdf

About

Windows batch script that automatically renames files in-place: replaces spaces with hyphens, converts Polish characters to ASCII, removes other special characters, converts filenames to lowercase, preserves extensions, and skips the script itself for safe, clean filenames.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published