Prompt Details
Model
Chat - (gpt-5.6)
Token size
1,321
Example input
[Describe your repetitive task, or type a number 1-10]: I need a Python script that renames all PDFs in a folder by adding today's date to the front of the filename. I'm on Windows, want the 2026-08-16 date format, just the selected folder (no subfolders), and I'll be running this regularly.
Example output
Your finished Windows script is ready: date_invoice_pdfs.py
It changes: invoice-123.pdf → 2026-08-16_invoice-123.pdf
It also:
- Renames PDFs in the selected folder only
- Ignores subfolders and non-PDF files
- Skips files already beginning with a date
- Never overwrites an existing file
- Uses your computer's current date each time
- Requires no extra packages or pip commands
Install Python:
1. Download the official Python Install Manager from Python.org
2. Open the downloaded installer and select Install
3. Open Command Prompt from your Windows Start menu
4. Type: python
5. Press Enter. When you see >>>, type: exit()
Run the script:
1. Download the script and keep it somewhere convenient, such as your Desktop
2. Double-click date_invoice_pdfs.py
3. Choose your invoice folder
4. The PDFs will be renamed immediately
5. A message will show how many were renamed or skipped
I recommend testing it first on a folder containing copies of two or three invoices.
By purchasing this prompt, you agree to our terms of service
GPT-5.6
Turn ChatGPT into an on-call automation consultant. Paste once, then pick from 10 modes: diagnose if a task's worth automating, get a working Python script, build a no-code Zapier/Make workflow, write an SOP, clean messy spreadsheets, tame your inbox, connect two apps, calculate real ROI, get a security/backup checklist, or a pitch to sell automation as a service. Written by an ex-software engineer, so it asks the right questions before building anything. No coding needed.
...more
Added over 1 month ago
