This Python script automatically renames all .txt files in a specified folder with a consistent naming pattern.
- Files are renamed as:
renamed_file_1.txt,renamed_file_2.txt, etc. - Only
.txtfiles are renamed. - The script prints a message for each renamed file.
- Place
rename_files.pyin the folder containing the files you want to rename. - Edit the script to set your folder path:
folder_path = "/path/to/your/folder"
python3 rename_files.py