[Solved using extra .*. after target folder name] Option to merge for in Place Rename of Folder

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
nsp
Power Member
Power Member
Posts: 1827
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

[Solved using extra .*. after target folder name] Option to merge for in Place Rename of Folder

Post by *nsp »

I would like to have a new option to merge folders when i do in place rename or move.

I have folders named a-001 a-002,.... a-994 if an do in place rename to a-target if a-target exist already TC ask to move but never to merge i.e move content instead of just renaming.


Currently i have to use external tool to do it which is less convenient than having it directly in TC.
User avatar
jinsight
Senior Member
Senior Member
Posts: 299
Joined: 2003-02-25, 19:47 UTC
Location: Wooster, Ohio, USA

Re: Option to merge for in Place Rename of Folder

Post by *jinsight »

Workaround: Branch view move to a new folder? You probably know this.
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
User avatar
nsp
Power Member
Power Member
Posts: 1827
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Option to merge for in Place Rename of Folder

Post by *nsp »

Branch-view is not really a solution as i do not want to select file but enclosing folders.
sa16
Senior Member
Senior Member
Posts: 220
Joined: 2021-09-10, 07:15 UTC

Re: Option to merge for in Place Rename of Folder

Post by *sa16 »

2nsp
Select a-001, a-002… --> Shift+F6 --> c:\Test\a-target.* --> Ok.
Is that not what it takes?
User avatar
petermad
Power Member
Power Member
Posts: 14914
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Option to merge for in Place Rename of Folder

Post by *petermad »

Select a-001, a-002… --> Shift+F6 --> c:\Test\a-target.* --> Ok.
Is that not what it takes?
I should think so too - but I am not sure how nsp distinguish between move and merge
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
nsp
Power Member
Power Member
Posts: 1827
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Option to merge for in Place Rename of Folder

Post by *nsp »

petermad wrote: 2023-07-03, 22:32 UTC
Select a-001, a-002… --> Shift+F6 --> c:\Test\a-target.* --> Ok.
Is that not what it takes?
I should think so too - but I am not sure how nsp distinguish between move and merge
When you move ( Shift+F6) you keep source folder name into target name.
When you merge, the content of the source folder is moved inside the target and source folder is deleted.

I have a-001 i want to rename to a-target all is ok.

I select a-002 i want to merge with a-target, if i rename, TC only warn that a-target exist and propose to move a-002 inside a-target.
What i want is to merge a-002 with a-target so all files of a-002 will be moved into a-target and a-002 deleted. I do not want to keep a-002 name.
I receive new a-xxx folder from time to time and cannot do all at once but like an iterative process.
sa16
Senior Member
Senior Member
Posts: 220
Joined: 2021-09-10, 07:15 UTC

Re: Option to merge for in Place Rename of Folder

Post by *sa16 »

nsp wrote:I select a-002 i want to merge with a-target
Select a-002 and .., then Shift+F6, etc.
User avatar
nsp
Power Member
Power Member
Posts: 1827
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Option to merge for in Place Rename of Folder

Post by *nsp »

To be clear:
I have
\\updates\A_1\1.txt
\\updates\A_1\1.log
\\updates\A_1\src_1.tar.bz2

\\updates\A_2\2.spec.docx

\\updates\A_3\3.release.7z

I want to merge folder A_1 A_2 A_3 into A_target in one operation.
I select A_1, A_2, A_3 and want to have at the end A_target containing all files but not A_1 A_2 A_3.

Using Shift+F6 currently i have A_Target\A_1, A_2 A_3

If i want to do it one by one, the first rename A_1 to A_Target is OK. The next one renaming A_2 to A_target Warn about existing folder and propose to move... And the result is to get A_Target\A_2 folder.

What i need is to have A_target containing 1.txt 1.log src_1.tar.bz2 2.spec.docx 3.release.7z and not A_2\2.spec.docx A_3\3.release.7z
sa16
Senior Member
Senior Member
Posts: 220
Joined: 2021-09-10, 07:15 UTC

Re: Option to merge for in Place Rename of Folder

Post by *sa16 »

nsp wrote:The next one renaming A_2 to A_target Warn about existing folder
It was proposed to rename (Shift + F6) the A_2 (along with ..) to A_target.*.
User avatar
nsp
Power Member
Power Member
Posts: 1827
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Option to merge for in Place Rename of Folder

Post by *nsp »

sa16 wrote: 2023-07-04, 07:39 UTC It was proposed to rename (Shift + F6) the A_2 (along with ..) to A_target.*.

I've never used this syntax target.*. and yes this solve my issue !
many thx @sa16
sa16
Senior Member
Senior Member
Posts: 220
Joined: 2021-09-10, 07:15 UTC

Re: [Solved using extra .*. after target folder name] Option to merge for in Place Rename of Folder

Post by *sa16 »

2nsp
The proposed method is suitable only for a specific case when there are no points (extensions) in folder names!

You can also use the command

Code: Select all

cm_RenMov /GT="c:\Test\a-target.*"
in the TC11.00b9.

Add_1
nsp wrote:[Solved using extra .*. after target folder name]
Only .*, not .*., as at you.

Add_2
In your case, you can use the following method:

Code: Select all

cm_RenMov /GT="c:\Test\?-target"
It will work even if there are points in the folder names, the main thing is that the first character of the folders is "a".
Post Reply