ant-commander-doc

Documentation / Help about Ant Commander (Pro) file manager

View the Project on GitHub

Multiple files rename

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.

How to rename files?

Advanced rename files

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

Special replacement will work with regular expression on and off.

Rename with directory changes

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.

Special changes

Use Special rename multiple files action to replace based on: