Batch Find & Replace in FILENAME?

General discussions about Advanced Find and Replace
Post Reply
Lverkeyn

Batch Find & Replace in FILENAME?

Post by Lverkeyn »

is it possible to search for and replace characters in the filename itself...not in the actual file.... for instance,
I have a folder that holds .jpg files that lives:
C:/images/Spring/
inside the spring folder are hundreds of .jpg files that are named like so:
-310_toyspot_right$16.jpg

I would like to take out the leading "-" using find and replace . is this possible? I can't seem to get it to work on Filenames.

Abacre
Site Admin
Posts: 1223
Joined: Mon Jan 31, 2005 5:32 pm

Post by Abacre »

We developed it as the new feature:
In main menu - Options - Batch Replace - "Batch Replace in File Names" and "Batch
Replace in File Bodies". So with "Batch Replace in File Names" option
it's possible now to use Advanced Find and Replace as full-featured
file renamer.

Please download latest version of the program:
http://www.abacre.com/download/afrexe.zip

This is only updated EXE file. You need to extract executable file from
zip archive into folder where the program is installed. So you will
replace old executable file by this new one.

Please test it and write how it works.


-310_toyspot_right$16.jpg

I would like to take out the leading "-" using find and replace . is this possible? I can't seem to get it to work on Filenames.

For your example you should use Batch replace with "Use Regular
expressions" ON and with the following pair:
Search for:
^-

Replace with:
.

I verified it perfectly works. So ^ means begin of the line. For
file names it means begin of file name.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Post Reply