#1 2019-04-11 21:10

NexusFred
Member
Registered: 2017-08-24
Posts: 9

Rename if the file name contains a specific word

Hello,

I would like to rename a file only if it's contains a specific word.

Example : if the file name content "TheWord" I choose to insert at the beginning the folder name.

Folder_N1
     startstuff_TheWord_endstuff.exe = Folder_N1_startstuff_TheWord_endstuff.exe
     TheWord_endstuff.exe = Folder_N1_TheWord_endstuff.exe
     startstuff_TheWord.exe =  Folder_N1_startstuff_TheWord.exe
     startstuff_endstuff.exe = startstuff_endstuff.exe // no change

Folder_N1
     startstuff_TheWord_endstuff.exe = Folder_N2_startstuff_TheWord_endstuff.exe
     TheWord_endstuff.exe = Folder_N2_TheWord_endstuff.exe
     startstuff_TheWord.exe =  Folder_N2_startstuff_TheWord.exe
     startstuff_endstuff.exe = startstuff_endstuff.exe // no change
....

There's a way to do that without Pascal ? (I know PHP/JS but not Pascal)

Best Regards
Nexus

Last edited by NexusFred (2019-04-11 21:56)

Offline

#2 2019-04-12 08:56

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Rename if the file name contains a specific word

Without PascalScript?

There are three ways, I can think off right now:

1: use your file manager, e.g. WinExp to search, then drag&drop only the wanted to ReNamer

2: Or check out the Filter settings in ReNamer at first step: *YourTermHere*
http://www.den4b.com/wiki/ReNamer:Menus … lters_menu

for to next load only wanted files
http://www.den4b.com/wiki/ReNamer:Addin … nd_folders


3: Or load all files to ReNamer, then use right click context menu to Mark by Mask: *YourTermHere*.*
http://www.den4b.com/wiki/ReNamer:Menus … rk_submenu



HTH?


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#3 2019-04-12 13:57

NexusFred
Member
Registered: 2017-08-24
Posts: 9

Re: Rename if the file name contains a specific word

Thanks a lot

I  forgot the Mark by Mask function wink

Best Regards
Nexus

Offline

Board footer

Powered by FluxBB