MRT: Multirenamen-Tool: Transpose and Rename FOLDERS

English support forum

Moderators: Stefan2, white, sheep, Hacker

Post Reply
Alonzo Mosley
Junior Member
Junior Member
Posts: 31
Joined: 2018-03-28, 20:13 UTC

MRT: Multirenamen-Tool: Transpose and Rename FOLDERS

Post by *Alonzo Mosley » 2019-07-10, 04:40 UTC

Dear Internet:

I have a bunch of folders that are named:

GENERIC NAME (MM-DD-YYYY)

Trouble is, they weren't modified in chronological order, so you can't Sort by Date and put them in order. And because it's month first, when you sort by name, you get
GENERIC NAME (02-01-2017)
GENERIC NAME (02-01-2018)
GENERIC NAME (02-01-2019)
GENERIC NAME (02-02-2017)
etc.

So, What I'd LIKE to do, is rename the folder to:
YY-MM-DD GENERIC NAME

I know there's a way (I can't find it, though) to do something like that with files, but how to please with folders?

Thanks in advance!

rjb
Dan: You're gonna need to get someone to fix my computer.
Kim: What's wrong with it?
Dan: It's in several pieces on my floor.

User avatar
Stefan2
Power Member
Power Member
Posts: 2513
Joined: 2007-09-13, 22:20 UTC
Location: Europa

MRT: swap timestamp folder name / date MM-DD-YYYY > YY-MM-DD

Post by *Stefan2 » 2019-07-10, 07:28 UTC

FROM:
GENERIC NAME (MM-DD-YYYY)
GENERIC NAME (12-31-1999)

TO:
YY-MM-DD GENERIC NAME
99-12-31 GENERIC NAME

DO:
-select your folders
-press Ctrl+M to open Multirenamen Tool
-Search: (.+)\s\((\d\d)-(\d\d)-\d\d(\d\d)\)
-Replace: $4-$2-$3 $1
☑RegEx




HTH? :D
Inofficial FAQs || WIKI (Deu/Eng) || TC Home (What's new? // FAQ // Download // Order // Addons // Tools // Plugins)
Erst wenn der letzte Baum gefällt oder die letzte Biene verendet ist, werden die Leute verstehen warum Umweltschutz wichtig ist.

Alonzo Mosley
Junior Member
Junior Member
Posts: 31
Joined: 2018-03-28, 20:13 UTC

Re: Transpose and Rename FOLDERS

Post by *Alonzo Mosley » 2019-07-10, 22:29 UTC

Thanks. Away from my external HD right now, will try in a bit.

But if you have a second, explain the process there? (I'm always hesitant to just experiment with Multi Rename to "figure things out")
Dan: You're gonna need to get someone to fix my computer.
Kim: What's wrong with it?
Dan: It's in several pieces on my floor.

User avatar
Stefan2
Power Member
Power Member
Posts: 2513
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Transpose and Rename FOLDERS

Post by *Stefan2 » 2019-07-11, 07:09 UTC

Alonzo Mosley wrote:
2019-07-10, 22:29 UTC
explain the process

I use Regular expressions to match wanted signs,
group the match in (...) capture groups (counted and named from left $1,$2,..)
and re-order that matches in the replacement.


FROM:
GENERIC NAME (MM-DD-YYYY)
TO:
YY-MM-DD GENERIC NAME
-Search: (.+)\s\((\d\d)-(\d\d)-\d\d(\d\d)\)
-Replace: $4-$2-$3 $1
☑RegEx

Pattern(.+)\s\((\d\d)-(\d\d)-\d\d(\d\d)\)
MatchEvery thing tilla spaceliteral open brackettwo digitshyphentwo digitshyphentwo digitstwo digitsclose bracket
FindGENERIC NAME   (MM-DD-yyYY)
Store as$1$2$3$4


Replace by $4-$2-$3 $1
YY-MM-DD GENERIC NAME



More info at:
- Ctrl+M
- F1
- Scroll to line with "RegEx Now supports"
- and click at "regular expressions"


Or just ask.

HTH? :D
Inofficial FAQs || WIKI (Deu/Eng) || TC Home (What's new? // FAQ // Download // Order // Addons // Tools // Plugins)
Erst wenn der letzte Baum gefällt oder die letzte Biene verendet ist, werden die Leute verstehen warum Umweltschutz wichtig ist.

User avatar
Dalai
Power Member
Power Member
Posts: 6589
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Transpose and Rename FOLDERS

Post by *Dalai » 2019-07-11, 14:10 UTC

Alonzo Mosley wrote:
2019-07-10, 22:29 UTC
(I'm always hesitant to just experiment with Multi Rename to "figure things out")
Why? That's what the column "New name" is for - it gives a preview of what the names will look like when you hit "Start".

Also, it should be easy to rename copies of the real files first, so if anything goes wrong, you can start from scratch.

Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

vdijken
Junior Member
Junior Member
Posts: 67
Joined: 2016-07-30, 14:07 UTC
Location: The Netherlands

Re: Transpose and Rename FOLDERS

Post by *vdijken » 2019-07-13, 09:22 UTC

1) You can select the folders first to be sure that the rename only is done for those folders or relocate the files temporary to a safe place.
2) Make in a temporary folder (a few ) empty folders with the same name and try it. And copy them before to another temporary location so you can easily repeat your action by copying the second set to the first set. Actions of rename are remembered by the rename tool.
3) You can always recall a rename action.

Post Reply