match and replace part of the filename?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

match and replace part of the filename? Mon Sep 28, 2015 10:23 pm • by garyleecn
hey, just wondering if it's possible to search and replace a part of filenames?

for example,
i have
123.abc.ext
456.abd.ext
789.abe.ext

is it possible to create a rule that automatically replace abc by abd, while leaving abe untouched.
so the desired outcome should be
123.abd.ext
456.abd.ext
789.abe.ext


many thanks :)
garyleecn
 
Posts: 3
Joined: Fri Oct 24, 2014 2:23 am

Re: match and replace part of the filename? Tue Sep 29, 2015 11:33 am • by Mr_Noodle
Normally you would use match patterns and custom attributes, but if it's a straight text replacement and the text is the same every time, then instead, use the Rename action, click on the "Name" attribute and use the "Replace text" function. There you can replace "abc" with "abd" or whatever.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: match and replace part of the filename? Tue Sep 29, 2015 7:23 pm • by garyleecn
hey, thanks for the tip.
so just one question,
if there are
123.abc.ext and
123.abd.ext under the same directory, and if i apply this rule to the folder, 123.abd.ext would be renamed to 123.abc.ext, but this file has already existed, anyway to 'rename the duplicate'? since i don't find this duplication option for renaming stuff,
garyleecn
 
Posts: 3
Joined: Fri Oct 24, 2014 2:23 am

Re: match and replace part of the filename? Wed Sep 30, 2015 11:33 am • by Mr_Noodle
It should automatically add a number to avoid a name clash. Currently, there is no option to replace the file during a rename.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support