How to copy/move buttons from one button bar to another easily

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
oko
Senior Member
Senior Member
Posts: 250
Joined: 2007-05-03, 16:22 UTC

How to copy/move buttons from one button bar to another easily

Post by *oko »

Is there a trick to copy/move more buttons in one step from one button bar to another easily? Copy+paste one by one is time-consuming. I tried to copy text between bar files but tc does not recognize it. And replacing numbers (button1, cmd1, path1..., button2, cmd2, path2...) is hard to do.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: How to copy/move buttons from one button bar to another easily

Post by *Horst.Epp »

I use the Button Bar Editor from the Ultra TC Editors.
https://utceditors.wincmd.ru/tc_tools/downloads.htm
It has all editing features one can expect, and also has an Import function.
So you can be in one .bar file and import all buttons from another one.
After the import you can edit, move or delete the imported buttons.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
Dalai
Power Member
Power Member
Posts: 9945
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: How to copy/move buttons from one button bar to another easily

Post by *Dalai »

You could copy the whole .bar file and delete the buttons you don't need from the copy. Copying text between .bar files works but it requires the Buttoncount to be changed accordingly and the numbering must also be correct.

Ultra TC Editors has a Button Bar Editor, maybe it's worth a look.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
beb
Power Member
Power Member
Posts: 579
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: How to copy/move buttons from one button bar to another easily

Post by *beb »

oko wrote: 2025-03-17, 15:56 UTC ...I tried to copy text between bar files but tc does not recognize it. And replacing numbers (button1, cmd1, path1..., button2, cmd2, path2...) is hard to do.
Going this way you'd also need to correct the buttons number at the beginning of the .bar file:
E.g. initial state:

Code: Select all

 [Buttonbar]
Buttoncount=27
After adding three more buttons it should become 27+3=30:

Code: Select all

 [Buttonbar]
Buttoncount=30
And yes, the whole process in the use case of drastically reorganizing the toolbars is just awful.
Luckily, this is not an everyday event, at least for me (I have 12 buttonbars, but they are more or less stable, and one of them is a 'bars.bar' to quickly accessing to any of them).
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Re: How to copy/move buttons from one button bar to another easily

Post by *Vochomurka »

Single user license #329241
PowerPro scripts for Total Commander
hi5
Power Member
Power Member
Posts: 637
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: How to copy/move buttons from one button bar to another easily

Post by *hi5 »

Pretty dumb perhaps, but why not start two TCs, one with the source button bar, and one with the target button bar.
Now right click, copy in the source TC bar, and paste in the target TC bar.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
oko
Senior Member
Senior Member
Posts: 250
Joined: 2007-05-03, 16:22 UTC

Re: How to copy/move buttons from one button bar to another easily

Post by *oko »

2hi5
you will get subbar in bar after pasting in the target bar. The aim is to get buttons (not bar with buttons) in target bar.
Post Reply