Table des matières

Rename

In short: renames files in batch with a regular expression.

Software –
Category Tools
Input Files of a folder (or of its subfolders)
Output Renamed files, in place or in Output Folder
First time? Follow the My first Job tutorial.

Parameters

Parameter Role Example
regSrc Regular expression with groups in brackets ^test-(.*)\.(.{3})$
outputName New name; $1, $2… reuse the groups $1-$2.mov
Output Folder Empty = rename in place; otherwise, destination folder
Input Mode Recurs Folder to also process subfolders (then Refresh)
Test Mode Simulates the renaming without changing anything

Examples

Need Original name Result regSrc outputName
Add a prefix test-Fichier.ext ren-test-Fichier.ext (.*) ren-$1
Remove a prefix test-Fichier.ext Fichier.ext (.*)-(.*) $2
Change the extension test-Fichier.ext test-Fichier.mov (.*)\.ext $1.mov
Reorder test-Fichier.ext Fichier-ext.mov test-(.*)\.(.{3}) $1-$2.mov
Real case ZUK101_BG_002_BGC_V01.jpg ZUK101_LAY_002_BGL_V01.jpg (.*)_BG_(.*)_BGC_(.*$) $1_LAY_$2_BGL_$3
  • Rename deletes the source file. To keep the originals, chain a Copy task first.
  • The destination file must not already exist.
  • Always use Test Mode before the real renaming.

See also