Page 1 of 1
[Solved using extra .*. after target folder name] Option to merge for in Place Rename of Folder
Posted: 2023-07-01, 06:19 UTC
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.
Re: Option to merge for in Place Rename of Folder
Posted: 2023-07-02, 01:13 UTC
by jinsight
Workaround: Branch view move to a new folder? You probably know this.
Re: Option to merge for in Place Rename of Folder
Posted: 2023-07-03, 06:48 UTC
by nsp
Branch-view is not really a solution as i do not want to select file but enclosing folders.
Re: Option to merge for in Place Rename of Folder
Posted: 2023-07-03, 12:37 UTC
by sa16
2nsp
Select a-001, a-002… --> Shift+F6 --> c:\Test\a-target.* --> Ok.
Is that not what it takes?
Re: Option to merge for in Place Rename of Folder
Posted: 2023-07-03, 22:32 UTC
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
Re: Option to merge for in Place Rename of Folder
Posted: 2023-07-04, 05:15 UTC
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.
Re: Option to merge for in Place Rename of Folder
Posted: 2023-07-04, 06:50 UTC
by sa16
nsp wrote:I select a-002 i want to merge with a-target
Select a-002 and
.., then Shift+F6, etc.
Re: Option to merge for in Place Rename of Folder
Posted: 2023-07-04, 07:24 UTC
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
Re: Option to merge for in Place Rename of Folder
Posted: 2023-07-04, 07:39 UTC
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
.*.
Re: Option to merge for in Place Rename of Folder
Posted: 2023-07-04, 08:36 UTC
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
Re: [Solved using extra .*. after target folder name] Option to merge for in Place Rename of Folder
Posted: 2023-07-04, 10:15 UTC
by sa16
2
nsp
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:
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".