Batch File Renaming Script

Заказчик: AI | Опубликовано: 18.04.2026

I want to streamline routine file management by automating the renaming process. The script should scan a chosen folder (and, optionally, its sub-folders) and rename every file according to rules I can define at run time—such as adding a prefix or suffix, replacing text, or applying sequential numbering while reserving the original extension. A dry-run flag that prints the planned changes without touching the files will help me verify the outcome before committing. Python 3 feels like the most portable option, but I am open to Bash or PowerShell as long as usage is thoroughly documented and the code is clearly commented. Cross-platform compatibility (Windows and macOS) is a plus, and the script must fail gracefully if it encounters name collisions or permission issues, logging those instances for review. Deliverables • Well-commented source code • A concise README or inline help describing parameters, examples, and any dependencies • A quick test or sample run that proves the renaming logic works on a small dummy data set Handing over these items in a single archive or Git repo will complete the job.