Home / Prompts / Files

Rename files in bulk

Give hundreds of files clear, consistent names in one go.

FilesStep by step

The prompt

In the folder ~/Documents/Invoices, rename every PDF to the pattern YYYY-MM-DD_Customer_Amount.pdf using the date, customer name and total written inside each invoice. Show a table of old and new names first, then rename after I confirm.

What the AI will do

  1. Reads the date, customer and total inside each invoice PDF.
  2. Shows a table of old and new names.
  3. Renames after you confirm and lists any file it could not read.

On Windows, Mac and Linux

All three: reading PDFs needs a program like Python installed. Windows: characters such as : ? * " are not allowed in file names, so they are left out.

How to use it

  1. Make sure Shellway is connected in ChatGPT, Claude or Cursor.
  2. Paste the prompt and change the folder names or paths to match your computer.
  3. Review the plan your AI shows before you confirm any changes.

Example reply

An illustration of a typical answer. Your AI will show the real files, names and numbers from your computer.

Old name               New name
scan0012.pdf           2026-10-04_Sharma Traders_12500.pdf
Invoice (3).pdf        2026-10-11_BlueLeaf_4320.pdf
doc_8812.pdf           2026-10-19_Kumar & Sons_890.pdf
...
46 files. 2 PDFs had no readable date; I left them unchanged. Rename the 46?

Tips

  • If some files cannot be read, ask it to list them separately instead of guessing.

Good to know

Your AI shows its plan before it changes anything, and your rules on the computer still apply: read-only mode, allowed folders and blocked commands, with a backup before each file edit (safety rules). Works in ChatGPT, Claude, Claude Code and Cursor; the free plan gives 50 actions a day (pricing).

Related prompts