File Renamer Script
Description
The FileRenamer.py
script is a utility designed to rename multiple files in a specified directory based on a given regex pattern. This script helps users quickly standardize file names, making file management easier.
Features
- Batch Renaming: Rename multiple files that match a specified regex pattern.
- Custom Naming: Users can provide a new base name for the renamed files, with a counter appended to ensure unique names.
Usage
- Ensure you have Python installed on your machine.
- Download the
FileRenamer.py
script.
- Open a terminal or command prompt and navigate to the directory where the script is located.
- Run the script using the following command:
python
FileRenamer.py
- When prompted, enter the path of the directory containing the files you want to rename.
Enter path: /path/to/your/directory
- Enter the regex pattern for the files you want to rename. For example:
Enter pattern: IMG.*
- Enter the new base name for the renamed files.
Enter the new name: NewImageName
- The script will rename all matching files in the specified directory according to the new name format.
Requirements
- Python 3.x
- Basic understanding of file paths in your operating system.
- Familiarity with regex patterns for filtering files.
License
This script is open-source and free to use. Feel free to modify and distribute as needed.
Contributing
If you'd like to contribute to this project, please open an issue or submit a pull request with your proposed changes or enhancements.