#1 2022-10-01 15:16

GS
Member
Registered: 2019-09-01
Posts: 6

Only rename certain filetypes: can't get filters to work

Hello,

I'm currently trying to work with filters.

Here is what I have:

Folder 1
random_name_1.sfv
linux.iso

Folder 2
random_name_2.md5
linux.iso

What I would like:

Folder 1
checksum.sfv
linux.iso

Folder 2
checksum.md5
linux.iso

I tried to use filters so that only files with .md5 and .sfv extensions are renamed:

Clipboard01.png

This doesn't work. My .iso files are also renamed.

What am I missing?

Thanks for your help!

Last edited by GS (2022-10-01 15:17)

Offline

#2 2022-10-01 15:30

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: Only rename certain filetypes: can't get filters to work

That looks fine. Now all you have to do is add your files.

Note that the filters are applied only when you add new files to ReNamer. Files that are already in ReNamer will not get affected.

Reference: https://www.den4b.com/wiki/ReNamer:Filter_settings

Offline

#3 2022-10-01 15:44

GS
Member
Registered: 2019-09-01
Posts: 6

Re: Only rename certain filetypes: can't get filters to work

Thanks for your reply.

Now I understand. I'm always using the "Send to" menu, so the preset is loaded after folders have been added.

Is there a workaround to achieve the result I want and still use the "Send to" menu? Maybe a script?

Offline

#4 2022-10-02 09:04

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: Only rename certain filetypes: can't get filters to work

Save your filter settings in a preset and then create a new shortcut in the Send To menu to open ReNamer with that preset.

When you send files to this new shortcut, ReNamer will load the preset with the filter settings first and then try to add all the sent files.

Example command line:

"C:\Program Files (x86)\ReNamer\ReNamer.exe" /preset "My Preset"

Reference: https://www.den4b.com/wiki/ReNamer:Command_Line

Offline

#5 2022-10-03 08:43

GS
Member
Registered: 2019-09-01
Posts: 6

Re: Only rename certain filetypes: can't get filters to work

Well, that's good to know, thank you for the tip.

I could also achieve the desired result with a preset:

Clipboard01.png

Offline

#6 2022-11-09 01:10

jogiwer
Member
From: Germany
Registered: 2022-11-05
Posts: 66

Re: Only rename certain filetypes: can't get filters to work

You could/should also use a regular expression and do this in one rule.

Make sure to uncheck the "Skip extension" Option:

.*\.(sfv|md5)$
checksum.$1

Offline

Board footer

Powered by FluxBB