moving with MRT

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

You got your more than 400 posts by repeating this phrase thrice a day?
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

I can't help myself, You are just so funny....
Habemus majkam!
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

Maybe you will EXPLAIN me, why I am So funny that you can't help yourself. Or are you so laughing that you can't even type for long?
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

[OT]

Post by *majkinetor ! »

Are you angree now ?


Well, I can't explain you why are you funny, because we might have very different humor sense. It will eventually become like explaining to Jamacan guy that smoking marijuana will kill him....

But maybe if you leave some details about your life, your habits, the girls you like, the books you read, the music you listen..... actually forget about the girls..... or if you just hang around for a while, you might get what you are seeking for.
Habemus majkam!
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Post by *robinsiebler »

I haven't been able to make heads or tales of the post. Hopefully, someone will give me an example using this data:

I want to rename/move the DSC0XXX from c:\temp\pics\ to c:\Pictures\Hawaii\XXX.
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
User avatar
RID500
Member
Member
Posts: 194
Joined: 2006-11-20, 12:38 UTC

Post by *RID500 »

robinsiebler wrote:I haven't been able to make heads or tales of the post. Hopefully, someone will give me an example using this data:

I want to rename/move the DSC0XXX from c:\temp\pics\ to c:\Pictures\Hawaii\XXX.
In the MRT:
[N5-7].[E]
Search: (.+)
Replace: ..\\..\\Pictures\\Hawaii\\$1
[x]RegEx on



This means:
... Replace: ..\\$1 => move to temp (.. == Parent of Pics-folder)
... Replace: ..\\..\\$1 => move to C:\ (..\..\ == grand parent of Pics-folder)
... Replace: ..\\..\\Pictures\\$1 => move to C:\ and there in sub folder "Pictures"
... Replace: ..\\..\\Pictures\\Hawaii\\$1 => move to C:\Pictures\Hawaii

$1 means the back reference to the group found in (.+)
The backslash \ is a symbol char in RegEx, so we must escape him with an second back slash \\.
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Post by *robinsiebler »

Thanks!

Is there any kind of magic that will enable me to move the files to the opposite pane?
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
User avatar
chrizoo
Senior Member
Senior Member
Posts: 351
Joined: 2008-03-12, 02:42 UTC

Post by *chrizoo »

robinsiebler wrote:Thanks! Is there any kind of magic that will enable me to move the files to the opposite pane?
good question ... anyone knows?

And something else: I have studied the thread back and forth and what I don't quite understand:
If you use this trick with the backslash in the replace box, the target folders MUST already exist ??
But what if you have files like
Smith Peter.txt, Smith John.txt, Smith Fred.txt, MacRae Jim, MacRae Stacy
and want to rename them so that they are moved in folders with their family name ?
User avatar
chrizoo
Senior Member
Senior Member
Posts: 351
Joined: 2008-03-12, 02:42 UTC

Post by *chrizoo »

XPEHOPE3KA wrote: 2. I downloaded some music files all named like artist - title.mp3. Now I cannot create folders for all the artists (yeah, I downloaded a sh*t load of music), but I already have some of their songs under D:\Music\<artist>\, while my downloads are at F:\. So I have to move all my mp3s to D:\Music\ and then:
search for: (.+) - (.+)\.mp3
replace with: $1\\$2.mp3
Whoooo...
XPEHOPE3KA, I'd be quite curious to know, how exactly did you managed to do this ... ?? Because I'd like to do that myself but the problem I see is that this only works if the folders for the artists and albums already exist. But I guess if you downloaded really a "sh** load of music", than I guess you didn't create so many folders manually, right? So what's your trick then ?
User avatar
solid
Power Member
Power Member
Posts: 755
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

But what if you have files like
Smith Peter.txt, Smith John.txt, Smith Fred.txt, MacRae Jim, MacRae Stacy
and want to rename them so that they are moved in folders with their family name ?
in your specefic case, you can search for
"(.+) "
and replace with
"..\\$1\\$1 "

regex enabled.
Of course, you got to have directories created, because MRT cannot create them for you yet.
Post Reply