Add to rname features to delete name of parent etc. from filenames
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 2
- Joined: 2020-08-09, 22:16 UTC
Add to rname features to delete name of parent etc. from filenames
I suggest to add to multirename feature and elsewhere the ability to delete the name of parent, grandparent, etc. from file name or folders. This could make file names simpler if they didn't have the repetition of information from their path embedded in the file name. I have a library of television programs and films, and I'd like to make the episode titles simpler if the name of the folder is the name of the program, for example.
Re: Add to rname features to delete name of parent etc. from filenames
2bibliomusic
Hi and welcome.
Please provide before/after examples of that what you mean.
BEFORE:
D:\rive\Path\Foldername\filename.ext
D:\rive\Path\Foldername\filename.ext
D:\rive\Path\Foldername\filename.ext
AFTER:
D:\rive\Path\Foldername\filename.ext
D:\rive\Path\Foldername\filename.ext
D:\rive\Path\Foldername\filename.ext
Hi and welcome.
Please provide before/after examples of that what you mean.
BEFORE:
D:\rive\Path\Foldername\filename.ext
D:\rive\Path\Foldername\filename.ext
D:\rive\Path\Foldername\filename.ext
AFTER:
D:\rive\Path\Foldername\filename.ext
D:\rive\Path\Foldername\filename.ext
D:\rive\Path\Foldername\filename.ext
Re: Add to rname features to delete name of parent etc. from filenames
In Multi-Rename Tool:
Remove name of parent folder from the filename:
Add \s* in front of and/or behind \1 if you also want to remove leading and/or trailing spaces.
Remove name of grandparent folder from the filename:
* same but use {G} instead of [P]
Remove name of parent folder from the filename:
Code: Select all
File mask: [P]\[N]
Search for: ^(.*)\\((.*?)\1)?
Replace with: $3
RegEx: Enabled
Remove name of grandparent folder from the filename:
* same but use {G} instead of [P]
Re: Add to rname features to delete name of parent etc. from filenames
Stefan2,
to here:
or similar.
Roman
I assume the request is for a simple way to get from there:Please provide before/after examples of that what you mean.
Code: Select all
C:\ABBA\1989\Greatest Hits\ABBA - 1989 - Greatest Hits - Waterloo.mp3
Code: Select all
C:\ABBA\1989\Greatest Hits\Waterloo.mp3
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: Add to rname features to delete name of parent etc. from filenames
It's unnecessary.Replace with: $3
Rename mask: [P]\[N]
Search for: ^([^\\]+)\\\1\s*
☑ RegEx
Overquoting is evil! 👎