Button bar opens as text file
Moderators: Hacker, petermad, Stefan2, white
Button bar opens as text file
My issue:
1. I have a button on my main (Default) button bar that opens a secondary button bar.
2. Everything was working fine until I moved to a different computer and had to install TC under a different path:
3. I copied my button bar files and changed the paths where necessary for the new installation location.
4. Now, when I click the button on my main (Default) button bar to access the secondary button bar, the secondary button bar opens as a text file.
Any suggestions?
1. I have a button on my main (Default) button bar that opens a secondary button bar.
2. Everything was working fine until I moved to a different computer and had to install TC under a different path:
3. I copied my button bar files and changed the paths where necessary for the new installation location.
4. Now, when I click the button on my main (Default) button bar to access the secondary button bar, the secondary button bar opens as a text file.
Any suggestions?
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
Re: Button bar opens as text file
1. Check the settings of your button on my main (Default) button bar to access the secondary button bar.
The command must end with bar.
By chance it ends with txt
2. Perform a doubleclick on a BAR file.
=> Does it open as text file ? => you have assigned BAR extension to a text editor by mistake
The command must end with bar.
By chance it ends with txt
2. Perform a doubleclick on a BAR file.
=> Does it open as text file ? => you have assigned BAR extension to a text editor by mistake
Last edited by sqa_wizard on 2021-11-30, 19:10 UTC, edited 1 time in total.
#5767 Personal license
Re: Button bar opens as text file
Yes, the problem seems to be that .bar is associated with a text editor. Unassociating it is a separate issue that I will have to deal with. This is a company computer and every thing I try seems to violate some company security restriction.
Re: Button bar opens as text file
Sorry, but that makes no sense.joelEis wrote: 2021-11-30, 18:38 UTC Yes, the problem seems to be that .bar is associated with a text editor. Unassociating it is a separate issue that I will have to deal with. This is a company computer and every thing I try seems to violate some company security restriction.
No security rule forces one to assign a text editor to a certain extension.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
Re: Button bar opens as text file
You may work around with TC internally:
Just use "Files - Internal associations (Total Commander only)"
Add "*.bar* and let it empty or remove unwanted entries
Just use "Files - Internal associations (Total Commander only)"
Add "*.bar* and let it empty or remove unwanted entries
#5767 Personal license
Re: Button bar opens as text file
Uh, what is the command on your button that is supposed to open the secondary bar? It should be My guess is that you don't have OPENBAR as the command on that button, hence it's opened in the associated program.
Regards
Dalai
Code: Select all
OPENBAR D:\rive\some\file.bar
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Button bar opens as text file
OPENBAR command is not needed to open one button bar from another. Note that OPENBAR command was introduced with TC 7 while open buttonbar by button on bar is possible starting with WC 4Dalai wrote: 2021-11-30, 19:18 UTC Uh, what is the command on your button that is supposed to open the secondary bar? It should beMy guess is that you don't have OPENBAR as the command on that button, hence it's opened in the associated program.Code: Select all
OPENBAR D:\rive\some\file.bar
Regards
Dalai
Also associate BAR files with text editor doesn't harm to anything - called as a command from buttonbar TC handles BAR files internally.
There's something wrong with OP system/TC.
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Button bar opens as text file
The behavior is different with OPENBAR when the linked .bar file is invalid, e.g. because the [Buttonbar] section header is missing:
1. Without OPENBAR, TC will try to open the .bar file with the associated program
2. With OPENBAR, you will get an empty button bar
So my guess is that the linked .bar file is damaged somehow. Please open it with F4, it should start like this:
[Buttonbar]
Buttoncount=<number of buttons>
button1=<dll or exe name>,<index>
cmd1=<a command>
iconic1=0
menu1=label
button2=<dll or exe name>,<index>
etc.
1. Without OPENBAR, TC will try to open the .bar file with the associated program
2. With OPENBAR, you will get an empty button bar
So my guess is that the linked .bar file is damaged somehow. Please open it with F4, it should start like this:
[Buttonbar]
Buttoncount=<number of buttons>
button1=<dll or exe name>,<index>
cmd1=<a command>
iconic1=0
menu1=label
button2=<dll or exe name>,<index>
etc.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Button bar opens as text file
Actually there is a problem 'cause Windows 7+++ doesn't allow just to remove association with a program, the stupid new association editor only allows changing it to another program, and it doesn't even set an icon for an extension.Horst.Epp wrote: 2021-11-30, 19:01 UTC No security rule forces one to assign a text editor to a certain extension.
