Documentation / Help about Ant Commander (Pro) file manager
Multiple file rename is only available in Ant Commander Pro file manager
Note that the extension is not included when renaming multiple files. Use rename extension action for that.
You can use regular expression with the Reg Exp button to perform for advanced rename.
Rename | Find | Replace | Examples |
---|---|---|---|
Prefix files | ^ | prefix- | image001.jpg -> prefix-image001.jpg |
Suffix files | $ | -suffix | image001.jpg -> image001-suffix.jpg |
Groups | ([a-zA-Z]+)(\d+) | $1-$2 | image001.jpg -> image-001.jpg |
Use file name | .+ | $0-test | image001.jpg -> image001-test.jpg |
More about regular expression pattern here</a>
Note: Do NOT use .* but .+ to match the file name in the regular expression
If no groups are created in the regular expression with parenthesis, only $0 can be used to represent the text matching the regular expression
Special replacement will work with regular expression on and off.
By default multiple rename will use the file name without the extension.
If in the Find the ‘/’ character is used, the relative path is used instead.
e.g. if test/file.txt is selected, Find test/ Replace with test- will move the file to test-file.txt in the base directory.
If in the Replace with field the ‘/’ character is used, the output will consired it as a folder specification.
e.g. if Invoice-Company-12345.pdf is selected, Find Invoice-([A-Za-z]+)- (Reg Exp) Replace with $1/$0 will move the file to Company/Invoice-Company-12345.pdf.
Use Special rename multiple files action to replace based on:
Remove accents and diacritics in file names
Note that if you want to remove all specific non-ascii characters, you can do a find \p{M} replace with nothing in the regular multi-rename tool with regular expression enabled.
File mapping
The mapping should be in the form of Filename1->NewName1;Filename2->NewName2;…
You can click on the edit button next to the field to make it easier to enter the mapping.
In the edit text field you can use tabs as separator between old filename and new filename to it makes it easier to import the mapping from Excel or another table tool.