[Solved] Rename folders
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 80
- Joined: 2016-10-26, 20:04 UTC
[Solved] Rename folders
Hello everyone
I would like to rename these folders
by so
2016-03-13 - SZ001 - Test1
2016-04-24 - SZ002 - Test2
2016-05-22 - SZ003 - Test3
2016-06-09 - GIO01 - Test4
2016-08-07 - GIO02 - Test5
2016-10-12 - SZ004 - Test6
2016-11-25 - IV001 - Test7
2016-12-16 - SZ005 - Test8
2017-02-12 - GIO03 - Test9
2017-04-03 - IV002 - Test10
2017-05-06 - GIO04 - Test11
........................
eccc.......
to so
SZ001 - 2016-03-13 - Test1
SZ002 - 2016-04-24 - Test2
SZ003 - 2016-05-22 - Test3
........................
eccc...........
can someone help me?
Thank you
I would like to rename these folders
by so
2016-03-13 - SZ001 - Test1
2016-04-24 - SZ002 - Test2
2016-05-22 - SZ003 - Test3
2016-06-09 - GIO01 - Test4
2016-08-07 - GIO02 - Test5
2016-10-12 - SZ004 - Test6
2016-11-25 - IV001 - Test7
2016-12-16 - SZ005 - Test8
2017-02-12 - GIO03 - Test9
2017-04-03 - IV002 - Test10
2017-05-06 - GIO04 - Test11
........................
eccc.......
to so
SZ001 - 2016-03-13 - Test1
SZ002 - 2016-04-24 - Test2
SZ003 - 2016-05-22 - Test3
........................
eccc...........
can someone help me?
Thank you
Last edited by Alexisback on 2018-10-25, 05:19 UTC, edited 1 time in total.
Re: Rename folders
Multi rename tool
Code: Select all
Search for: (.+) - (.+) - (.+)
Replace with: $2 - $1 - $3
[x]RegEx
-
- Junior Member
- Posts: 80
- Joined: 2016-10-26, 20:04 UTC
Re: Rename folders
it works,Gral wrote: ↑2018-10-24, 21:30 UTC Multi rename toolCode: Select all
Search for: (.+) - (.+) - (.+) Replace with: $2 - $1 - $3 [x]RegEx
can you explain the code to me?
Thank you so much
Re: Rename folders
It is explained in the TC help.
( mk:@MSITStore:TOTALCMD.CHM::/reg_ex.htm )
( mk:@MSITStore:TOTALCMD.CHM::/reg_ex.htm )
Code: Select all
Subexpressions for search+replace
Text parts in round braces are taken as subexpressions. Up to 32 subexpressions are supported now.
Example: To swap the title and interpret in the file name of an mp3 file, when they are separated by a dash (Title - Interpret.mp3), use the following options:
Search for: (.*) - (.*)\.mp3
Replace by: $2 - $1.mp3
Here $1 means the text in the first brace, and $2 the text in the second brace.
-
- Junior Member
- Posts: 80
- Joined: 2016-10-26, 20:04 UTC
Re: Rename folders
You
why this?
(.+)
and not this
(.*)
TOTALCMD.CHMSearch for: (.+) - (.+) - (.+)
Search for: (.*) - (.*)
why this?
(.+)
and not this
(.*)
Re: Rename folders
Again - read help! - the same chapter.
Code: Select all
Iterators
Iterators are used for a repetition of the character or expression to the left of the iterator.
* zero or more occurrences
+ one or more occurrences
-
- Junior Member
- Posts: 80
- Joined: 2016-10-26, 20:04 UTC
Re: Rename folders
I understood nowGral wrote: ↑2018-10-24, 22:43 UTC Again - read help! - the same chapter.Code: Select all
Iterators Iterators are used for a repetition of the character or expression to the left of the iterator. * zero or more occurrences + one or more occurrences
Thank you so much for your help