Tired of renaming files one by one? Let's automate it with Python!
Save time and avoid repetitive tasks with this simple script!
Python:
import os
# https://t.me/LearnPython3
directory = 'path/to/your/folder'
prefix = 'image_'
# Iterate over files in the directory
for count, filename in enumerate(os.listdir(directory)):
new_name = f"{prefix}{count}.png"
src = f"{directory}/{filename}"
dst = f"{directory}/{new_name}"
# Rename the file
os.rename(src, dst)