MRT: checkbox for replacing files.

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
lucifloki
Junior Member
Junior Member
Posts: 7
Joined: 2013-08-02, 05:32 UTC

MRT: checkbox for replacing files.

Post by *lucifloki »

How to enable the forced replacement of files of the same names? In multi-rename tool.
Last edited by lucifloki on 2013-08-04, 19:00 UTC, edited 1 time in total.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can e.g. do main rename step while only files with same names remain and then add a counter into name template.
lucifloki
Junior Member
Junior Member
Posts: 7
Joined: 2013-08-02, 05:32 UTC

Post by *lucifloki »

2MVV
Вижу Вы из России :) Мне нужна именно замена.
Например, заменить много файлов, они находятся во многих папках, заменяю с автопереименованием оригинальных, с припиской в названии "(2)", а теперь мне надо вернуть все на исходную, для этого я ищу все файлы с "(2)", убираю приписку с помощью группового переим. и подтверждаю замену файлов. Вот только оно не заменяет :( Эта функция была бы очень полезна.

I need it replaced.
For example, to replace a lot of files, they are in many folders, replace the renaming of the original, with a note in the title "(2)", and now I have to return all the original, for that I'm looking for all files with "(2)", delete "(2)" with multirename tool and confirm the file replacement. That's just it does not replace: (This feature would be very useful.

p.s. sorry for bad english :)
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can 'rename' them with desired names but into some subdirectory so TC will move files to that dir. Then simply move entire contents of that subdir to original directories with auto-replacing.

E.g. use name template [=tc.path][N] and replace drive letter with some path to base dir to move files to using search and replace section (e.g. replace C.\ with C:\new\ in case of C:\ drive). After renaming move new directory structure over original one.

Two operations instead of one but if you have really a lot of files, it will be useful.

It is better to speak Russian there: http://forum.wincmd.ru/.
lucifloki
Junior Member
Junior Member
Posts: 7
Joined: 2013-08-02, 05:32 UTC

Post by *lucifloki »

The way you wrote did not work. :(
Screenshot:
http://i.imgur.com/dKa2Bri.png

It would be nice if the author added a checkbox for a replacement. :)
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It seems that all should be OK.
What happened when you've started rename operation?

BTW you can remove (2) from names using same rename operation, just add pipes and new search/replace strings (your second replace string will be empty):

Code: Select all

Search for: d.\Network|(2).
Replace: d:\Network\new\|
And, you can make a topic here to ask for new feature. I think it may be useful to see regular full-featured confirmations for MRT tool like for regular rename operation.
lucifloki
Junior Member
Junior Member
Posts: 7
Joined: 2013-08-02, 05:32 UTC

Post by *lucifloki »

User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Which TC version do you use? Old TC versions couldn't create intermediate directories while renaming files.

Also, you should add the pipe character to the end of replace field (as in my example) to make number of pipes equal in search/replace fields.
lucifloki
Junior Member
Junior Member
Posts: 7
Joined: 2013-08-02, 05:32 UTC

Post by *lucifloki »

Version 8.01 x64 (2012.08.03)

That's what happens, if done by your example:
http://i.imgur.com/9JTzaIS.png

two slash and the point is removed. The same error.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I've missed backslash in first field but it is not a problem BTW (Windows understands paths with multiple backslashes).

I just mean that numbers of pipes should be the same in both fields.


Well, it seems that TC appends names to paths (right column) so we get mess. Try the following (works for me):

Code: Select all

Search for: d.\Network\|(2).
Replace: ..\..\..\..\..\..\..\..\..\..\Network\new\|
(number of ..\ should be greater than max level of files to be renamed - each ..\ means one dir upper so all of them mean root drive folder)
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

@lucifloki

Could you please describe in future your problem shortly
in the subject line too, instead of using 'Multi-rename tool' there only.

You can use perhaps an prefix like 'MRT:' ?


Thank you.




.
lucifloki
Junior Member
Junior Member
Posts: 7
Joined: 2013-08-02, 05:32 UTC

Post by *lucifloki »

Work! Спасибо :) But I hope the check box add :)

2Stefan2
OK, already corrected.
Post Reply