Goal: rename a series of images in one go, without risking your files.
Time: 10 minutes. Prerequisites: no external software.
| Before | After |
|---|---|
Ep001_S001.png | Ep001_BG_S001.png |
Ep001_S002.png | Ep001_BG_S002.png |
Ep001_S003.png | Ep001_BG_S003.png |
ToonBox_Test folder on your Desktop.Ep001_S001.png, Ep001_S002.png, Ep001_S003.png.ToonBox_Test folder.Renaming uses a regular expression: the old name is split into pieces in brackets, which are then reassembled.
| Field | Value to enter | Meaning |
|---|---|---|
| regSrc | (Ep\d+)_(S\d+)\.png | Piece 1 = Ep001, piece 2 = S001 |
| outputName | $1_BG_$2.png | Piece 1, then _BG_, then piece 2 |
\d+ means “one or more digits” and \. a dot. $1 and $2 reuse the pieces in brackets.If a name is not what you expect, fix regSrc or outputName, then run the test again.
ToonBox_Test folder: the files are renamed.| Symptom | Likely cause |
|---|---|
| No file is processed | regSrc matches no name. Check upper/lower case and the extension. |
| A file is not renamed | A file already has the target name: Rename never replaces an existing file. |
| Subfolders are not processed | Set Input Mode to Recurs Folder, then click Refresh. |
All Tasks follow the same pattern: an input → parameters → a test → Start → the Log.
To go further: