Batch Find & Replace in FILENAME?

General discussions about Advanced Find and Replace
Post Reply
Lverkeyn

Batch Find & Replace in FILENAME?

Post by Lverkeyn » Mon Jan 31, 2005 5:32 pm

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: 1198
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

Post by Abacre » Mon Jan 31, 2005 5:32 pm

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

Who is online

Users browsing this forum: No registered users and 4 guests