Coding · Automation

Rename Many Files at Once With a Small Script

Rename hundreds of photos or documents in one go, with a safe preview before anything changes.

Prompt Code output

I have a folder with many files that I want to rename. My computer runs [OPERATING_SYSTEM]. Right now the names look like [CURRENT_NAMES] and I want them to look like [NEW_NAMES]. Please write a small script that does this. First it should only show a preview list of old name and new name without changing anything, and only rename after I confirm. It should skip any file if the new name already exists. Explain how to install anything needed, where to save the script, how to open the right window to run it, and exactly what to type. Remind me to try it on a copied folder first. Keep all explanations simple.

Fill in the brackets

[OPERATING_SYSTEM]
Windows, Mac, or Linux
[CURRENT_NAMES]
e.g. IMG_4821.jpg, IMG_4822.jpg
[NEW_NAMES]
e.g. Holiday-2024-001.jpg, Holiday-2024-002.jpg, in date order

How to use

  1. Copy the prompt.
  2. Replace the text inside [BRACKETS] with your own details.
  3. Paste it into ChatGPT or another AI assistant.
  4. Read the result and ask for changes if needed.

Tip: Copy the folder first and run the script on the copy; check the preview list carefully before you confirm.